aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-23 23:12:03 +0000
committerplegall <plg@piwigo.org>2010-12-23 23:12:03 +0000
commitae5438fbcef2764ad86261c0468c2c695a14aba4 (patch)
tree273194676ea8861fe33e53b2130d7e8cfa85a428 /ws.php
parentc1d517c285f7e159c877bf89c0ce12ad6f701461 (diff)
feature 2084 added: new method pwg.plugins.getList and pwg.plugins.performAction
git-svn-id: http://piwigo.org/svn/trunk@8273 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 6bc46e37f..f43da5b9b 100644
--- a/ws.php
+++ b/ws.php
@@ -368,6 +368,26 @@ function ws_addDefaultMethods( $arr )
),
'POST method only.'
);
+
+ $service->addMethod(
+ 'pwg.plugins.getList',
+ 'ws_plugins_getList',
+ array(),
+ 'get the list of plugin with id, name, version, state and description
+<br>administration status required'
+ );
+
+ $service->addMethod(
+ 'pwg.plugins.performAction',
+ 'ws_plugins_performAction',
+ array(
+ 'action' => array('default' => null),
+ 'plugin' => array('default' => null),
+ 'pwg_token' => array('default' => null),
+ ),
+ 'install/activate/deactivate/uninstall/delete a plugin
+<br>administration status required'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');