Correct, you have to loop through every photo entry you want to delete and explicitly delete it.
Cheers, -Jeff On Tue, Apr 21, 2009 at 2:58 PM, Олександр <[email protected]>wrote: > > I use Zend Framework Library for picasa web api. Is it possible delete > not only one photo from picasa storage (like in tutorial)? I havn't > problem with deleting one photo from picasa storege, but what about 2 > or 3 photo deletion at once? Maybe I need create service object one > time and than send queries for every photo that I need delete? > > I don't use albums. I put all images to dropbox and save in local > database it's url, pisaid, etc. > > Some string from my code. > > This is deleting of one photo. > $user = $this->_config->picasa->login; > $pass = $this->_config->picasa->pass; > $albumId = "default"; > > $service = Zend_Gdata_Photos::AUTH_SERVICE_NAME; > $client = Zend_Gdata_ClientLogin::getHttpClient($user, > $pass, $service); > $service = new Zend_Gdata_Photos($client); > > Maybe this string must be in looping of deleting photo by photo? > $photoQuery = new Zend_Gdata_Photos_PhotoQuery; > $photoQuery->setUser($user); > $photoQuery->setAlbumId($albumId); > $photoQuery->setPhotoId($picasaId); > $photoQuery->setType('entry'); > > $entry = $service->getPhotoEntry($photoQuery); > $service->deletePhotoEntry($entry, true); > > Sorry for my English ), it's not my native language. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---
