aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index a23929d28..e4a317385 100644
--- a/ws.php
+++ b/ws.php
@@ -143,6 +143,17 @@ function ws_addDefaultMethods( $arr )
'sets the privacy levels for the images (POST method only)'
);
+ $service->addMethod(
+ 'pwg.images.setRank',
+ 'ws_images_setRank',
+ array(
+ 'image_id' => array(),
+ 'category_id' => array(),
+ 'rank' => array(),
+ ),
+ 'sets the rank of a photo for a given album (POST method only, for admins)'
+ );
+
$service->addMethod('pwg.session.getStatus', 'ws_session_getStatus', null, '' );
$service->addMethod('pwg.session.login', 'ws_session_login',
array('username', 'password'),