From 858b43e87a9911269505c1fbc9036b374e89a565 Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 22 Nov 2009 23:58:44 +0000 Subject: 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 --- ws.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ws.php') diff --git a/ws.php b/ws.php index fea6c1c90..cc3369bae 100644 --- a/ws.php +++ b/ws.php @@ -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', -- cgit v1.2.3