my "Auto Backup" album has around ~7,000 photos.
I'm trying to search for a specific photo with title equals to "something".
once i found the photo, i would like to set a new albumId to this specific
photo. the albumId belongs to an already existing album.
I've tried many approaches and API... *all of them returned the requested
photo but failed to update* the albumId with:
com.google.gdata.util.ResourceNotFoundException: Not Found
photo 565eXXXXXXXXX does not exist in src album 565dYYYYYYYY
*first approach -*
loop over my "Auto Backup" , find the requested photo and try to update:
...
URL feedUrltmp = new URL("https://picasaweb.google.com/data/feed/api/user/"
+ usernameshort + "/albumid/" + AutoBackupAlbumId + "?start-index=" +
((1000*i)+1) +"&max-results=" + (1000*i + 1000 ));
...
for(PhotoEntry photo : feedtmp.getPhotoEntries()) {
...
// find the photo ...
photo.setAlbumId(NewAlbumID.toString());
photo.update();
}
*second approach - *
loop over my "Auto Backup" , find the requested photo, extract the photoId
and photoAlbumId and call for different API like
The following API return one entry with the requested photo
1.
https://picasaweb.google.com/data/feed/api/user/111111111111/albumid/222222222222222/photoid/33333333333333333
2.https://picasaweb.google.com/data/feed/api/user/111111111111/albumid/222222222222222?kind=photo&fields=entry[gphoto:id=33333333333333333]
3. since i know the "location" of the photo in the album i also tried this -
[NOTE -* the photo is not returning in the first 1,000 results !!! maybe
this is the issue* ???]
https://picasaweb.google.com/data/feed/api/user/111111111111/albumid/222222222222222?kind=photo&max-results=1000&start-index=7000&fields=entry[gphoto:id=33333333333333333]
can anyone help ???
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.