diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-11-21 20:48:37 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-11-21 20:48:37 +0000 |
commit | aa87a2583b10dfcd7cd2b0e5bbdd717122778c3f (patch) | |
tree | c06c3e4437523a007c4e8102996fee884269e173 /ws.php | |
parent | 26def6668593bfbc03935eb2bd1ab7bc66d974a9 (diff) |
feature 2486 merge from trunk -r12624,12625,12650 Add an admin view for rates by user (improvement)
git-svn-id: http://piwigo.org/svn/branches/2.3@12651 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r-- | ws.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -154,7 +154,16 @@ function ws_addDefaultMethods( $arr ) ), 'sets the rank of a photo for a given album (POST method only, for admins)' ); - + + + $service->addMethod('pwg.rates.delete', 'ws_rates_delete', + array( + 'user_id' => array(), + 'anonymous_id' => array( 'default'=>'' ), + ), + 'deletes all rates for a user (POST method only, admins only)' + ); + $service->addMethod('pwg.session.getStatus', 'ws_session_getStatus', null, '' ); $service->addMethod('pwg.session.login', 'ws_session_login', array('username', 'password'), |