mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 18:53:01 +02:00
merge r4344 from branch 2.0 to trunk
feature 1051: new API method pwg.images.checkFiles. This method will be useful before asking for an update on photo files. Enhancement in code factorization. git-svn-id: http://piwigo.org/svn/trunk@4347 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -250,6 +250,18 @@ function ws_addDefaultMethods( $arr )
|
||||
'check existence of a photo list'
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.checkFiles',
|
||||
'ws_images_checkFiles',
|
||||
array(
|
||||
'image_id' => array(),
|
||||
'thumbnail_sum' => array('default' => null),
|
||||
'file_sum' => array('default' => null),
|
||||
'high_sum' => array('default' => null),
|
||||
),
|
||||
'check if you have updated version of your files for a given photo, for each requested file type, the answer can be "missing", "equals" or "differs"'
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.setInfo',
|
||||
'ws_images_setInfo',
|
||||
|
||||
Reference in New Issue
Block a user