issue #164 add new API method pwg.images.uploadCompleted

+ trigger ws_images_uploadCompleted when this API method is called
+ trigger empty_lounge (can be called at another moment with different effect)
This commit is contained in:
plegall
2021-09-15 13:47:41 +02:00
parent 0ee8772b9e
commit fb84527e3b
5 changed files with 87 additions and 5 deletions
+13
View File
@@ -817,6 +817,19 @@ function ws_addDefaultMethods( $arr )
array('admin_only'=>true)
);
$service->addMethod(
'pwg.images.uploadCompleted',
'ws_images_uploadCompleted',
array(
'image_id' => array('default'=>null, 'flags'=>WS_PARAM_ACCEPT_ARRAY),
'pwg_token' => array(),
'category_id' => array('default'=>null, 'type'=>WS_TYPE_ID),
),
'Notifiy Piwigo you have finished to upload a set of photos. It will empty the lounge, if any.',
$ws_functions_root . 'pwg.images.php',
array('admin_only'=>true)
);
$service->addMethod(
'pwg.images.setInfo',
'ws_images_setInfo',