Hi, For your purposes you can just use the <gphoto:user> value:
http://code.google.com/apis/picasaweb/reference.html#gphoto_user from their user entry: http://picasaweb.google.com/data/entry/api/user/default Cheers, -Jeff On Nov 13, 4:21 pm, jskillings <[EMAIL PROTECTED]> wrote: > I would like to greet a user by their username in my application, so I > have the same question, but using 'default' won't work for me. > > Given a session token, how can I retrieve the username associated with > the session token? > > Thank you. > > On Oct 22, 10:08 am, "Jeff Fisher" <[EMAIL PROTECTED]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
