I cannot get a non-empty feed with photos for an existing, public
album, and I cannot see what I am doing wrong. It does not matter
which of the following two methods I use to retrieve the photos:

// unauthenticated:
PicasawebService service = new PicasawebService("com.cc.MySpots");

// get album entry
final String albumUrl = "http://picasaweb.google.com/data/entry/api/
user/" +  username + "/albumid/" + albumId;
AlbumEntry album = service.getEntry(new URL(albumUrl),
AlbumEntry.class);
LOGGER.debug(album.getTitle().getPlainText());
LOGGER.debug(packet.setDescription(album.getDescription().getPlainText
());

// get the photos 1
AlbumFeed photoFeed = album.getFeed("photo");
LOGGER.debug("   PhotoFeed1 contains " + photoFeed.getPhotoEntries
().size());
for (PhotoEntry photo : photoFeed.getPhotoEntries())
{
        // never executed
}

// get the photos 2
final String feedUrl = "http://picasaweb.google.com/data/feed/api/
user/" +  username + "/albumid/" + albumId + "?kind=photo";
AlbumFeed photoFeed = service.getFeed(new URL(feedUrl),
AlbumFeed.class);
LOGGER.debug("   PhotoFeed2 contains " + photoFeed.getPhotoEntries
().size());
for (PhotoEntry photo : photoFeed.getPhotoEntries())
{
        // never executed
}

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to