aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-11-22 23:58:44 +0000
committerplegall <plg@piwigo.org>2009-11-22 23:58:44 +0000
commit858b43e87a9911269505c1fbc9036b374e89a565 (patch)
treedf2111e1a2efca092cb83c3e66ab181577b48ed8 /ws.php
parent7ee33e9c0c790a47ea57785472a16ed47c1feb65 (diff)
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
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index fea6c1c90..cc3369bae 100644
--- a/ws.php
+++ b/ws.php
@@ -251,6 +251,18 @@ function ws_addDefaultMethods( $arr )
);
$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',
array(