Thanks Jeff well i always appreciate your help!

greetings fritz

On 7 Mai, 19:40, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
wrote:
> Hi fritz,
>
> It's sort of confusing, but if you want to retrieve a list of photos,
> you have to use an "AlbumFeed" (since the type of feed is named based
> upon what it is you're looking inside of, not what you are looking
> for.)
>
> So if you wanted to loop through all of the photos in an album and get
> a thumbnail for each one you could do something like:
>
> String feedUrl = "http://picasaweb.google.com/data/feed/api/user/
> default/albumid/5124689657261671361";
>
> AlbumFeed feed = service.getFeed(new URL(feedUrl), AlbumFeed.class);
>
> for(PhotoEntry entry : feed.getPhotoEntries()) {
>   System.out.println(entry.getTitle().getPlainText());
>   System.out.println(entry.getMediaThumbnails().get(0).getUrl());
>
> }
>
> Also you'll notice I'm using PhotoEntry to access them instead of
> GphotoEntry, so there are lots of nice accessors that are photo-
> specific.
>
> If you have more questions about the Picasa Web Albums API, please
> feel free to ask them in the developer forum:
>
> http://groups.google.com/group/Google-Picasa-Data-API
>
> Cheers,
> -Jeff
>
> On May 7, 12:50 am, Fritz <[EMAIL PROTECTED]> wrote:
>
> > hi again!
>
> > im messing around with the webalbum api. tried some stuff and came
> > along with showing album information on my site.
> > i searched for the link of the albums thumbnail and in the end i got
> > it ! well now i want to select an album and get the fotos in the
> > album . well i get the title the name etc of the fotos but cant find a
> > way to get the photos link to show it on my site!
>
> > URL photoUrl = new URL("http://picasaweb.google.com/data/feed/api/
> > user/" + googleUserId + "/album/" + albumName + "+?kind=photo");
> >                         PhotoFeed myPhotoFeed = myService.getFeed(photoUrl,
> > PhotoFeed.class);
> >                         photoList = myPhotoFeed.getEntries();
>
> >                         PhotoEntry entry = new PhotoEntry();
> >                         for (GphotoEntry gphotoEntry : photoList) {
> >                                 System.out.println("Photo: " +
> > gphotoEntry.getTitle().getPlainText() + " -> " +
> > photoEntry.getSelfLink().getHref());
> >                                 
> > System.out.println(gphotoEntry.getSummary().getPlainText());
> >                         }
>
> > greetings,
>
> > fritz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to