mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #2354 update pwg.users.setInfo
and add pwg.users.setMyInfo method
This commit is contained in:
27
ws.php
27
ws.php
@@ -1238,6 +1238,33 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
|
||||
$ws_functions_root . 'pwg.users.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.users.setMyInfo',
|
||||
'ws_users_setMyInfo',
|
||||
array(
|
||||
'email' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'nb_image_page' => array('flags'=>WS_PARAM_OPTIONAL,
|
||||
'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE|WS_TYPE_NOTNULL),
|
||||
'theme' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'language' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'recent_period' => array('flags'=>WS_PARAM_OPTIONAL,
|
||||
'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
|
||||
'expand' => array('flags'=>WS_PARAM_OPTIONAL,
|
||||
'type'=>WS_TYPE_BOOL),
|
||||
'show_nb_comments' => array('flags'=>WS_PARAM_OPTIONAL,
|
||||
'type'=>WS_TYPE_BOOL),
|
||||
'show_nb_hits' => array('flags'=>WS_PARAM_OPTIONAL,
|
||||
'type'=>WS_TYPE_BOOL),
|
||||
'password' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'new_password' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'conf_new_password' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'',
|
||||
$ws_functions_root . 'pwg.users.php',
|
||||
array('admin_only'=>false, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.permissions.getList',
|
||||
|
||||
Reference in New Issue
Block a user