issue #1640 user preferences

This commit is contained in:
plegall
2022-03-31 18:16:23 +02:00
parent c56aee6c31
commit c2f8238e16
4 changed files with 161 additions and 0 deletions
+12
View File
@@ -1209,6 +1209,18 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.users.preferences.set',
'ws_users_preferences_set',
array(
'param' => array(),
'value' => array('flags'=>WS_PARAM_OPTIONAL),
'is_json' => array('default'=>false, 'type'=>WS_TYPE_BOOL),
),
'Set a user preferences parameter. JSON encode the value (and set is_json to true) if you need a complex data structure.',
$ws_functions_root . 'pwg.users.php'
);
$service->addMethod(
'pwg.users.favorites.add',
'ws_users_favorites_add',