diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-11-14 20:10:37 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-11-14 20:10:37 +0000 |
commit | 2f87684e097c087b18b6630878e5545c5c37699e (patch) | |
tree | 3745a7076294bec0b339cbe5769ed9a99b95262f /ws.php | |
parent | f59e5bf46ab8de2e54538bd43e85b33b68cc7a18 (diff) |
feature 2486: Add an admin view for rates by user
git-svn-id: http://piwigo.org/svn/trunk@12624 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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'), |