mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user