Have you asked this question on the Picasa API forum? https://groups.google.com/forum/#!forum/google-picasa-data-api
It seems like you would have this problem whether or not you are running on App Engine. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 2, 2011 at 3:17 AM, sinduja <[email protected]> wrote: > I am trying to use Picasa API by authenticating via OAuth 2.0 > > Below are the params I am using > scope: http://picasaweb.google.com/data/ > feed: "http://picasaweb.google.com/data/feed/api/user/default" > > After authorization, In the callback I am creating a PicasaWebService > and trying to get all the album entries. > Album entries are always empty. > I am able to create a new album though. > > Any idea what could go wrong? > > Below is the code in authorization callback > > GoogleOAuthParameters gOAuthParams = new GoogleOAuthParameters(); > gOAuthParams.setOAuthConsumerKey(OAUTH_CLIENT_ID); > gOAuthParams.setOAuthConsumerSecret(OAUTH_CLIENT_SECRET); > > GoogleOAuthHelper gOAuthHelper = new GoogleOAuthHelper(new > OAuthHmacSha1Signer()); > gOAuthHelper.getOAuthParametersFromCallback(req.getQueryString(), > gOAuthParams); > > > //fetch all cookies > Cookie[] cookies = req.getCookies(); > Cookie secretToken = null; > if (cookies != null) { > for (int i = 0; i < cookies.length; i++) { > String cookieName = cookies[i].getName(); > if (cookieName.equals("Secret_Token")) { > secretToken = cookies[i]; > break; > } > } > } > > gOAuthParams.setOAuthTokenSecret(secretToken.getValue()); > PicasawebService pws = new PicasawebService("Text Mashup"); > pws.setOAuthCredentials(gOAuthParams, new OAuthHmacSha1Signer()); > > UserFeed userFeed = pws.getFeed(new URL("http://picasaweb.google.com/ > data/feed/api/user/default"), UserFeed.class); > List<AlbumEntry> albums = userFeed.getAlbumEntries(); //albums is > always empty-- why? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" 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-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en.
