Hi, You can use "default" to mean "the user I am authenticating as" when working with feed URLs.
Cheers, -Jeff On Wed, Oct 22, 2008 at 2:11 AM, Abhijit <[EMAIL PROTECTED]> wrote: > > I am trying to retrieve photos from picasa from my web application. I > am using AuthSub for authentication. I am able to successfully > retrieve the session token. Now the next step (as mentioned in > http://code.google.com/apis/picasaweb/developers_guide_java.html) to > search photos based on tags .. > > --------------------------- > URL feedUrl = new URL("http://picasaweb.google.com/data/feed/api/user/ > username"); > > Query myQuery = new Query(feedUrl); > myQuery.setStringCustomParameter("kind", "photo"); > myQuery.setStringCustomParameter("tag", "puppy"); > > AlbumFeed searchResultsFeed = myService.query(myQuery, > AlbumFeed.class); > > for (PhotoEntry photo : searchResultsFeed.getPhotoEntries()) { > System.out.println(photo.getTitle().getPlainText()); > } > -------------------------- > > The prob is : how to get username from session token ? Without > username I won't be able to retrieve the user album ... please help > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
