I am just trying to get list of Albums using following c# code in a
console application (I'll use the same code for web later).
For AccessToken, I wen to OAuthPlaygound and generated an accessToken
with Picasa in scope. When I execute following code, I get "Invalid
Token" error on last line if I use SetAuthenticationToken() option .
However, if I use setUserCredentialss(), it works. Could anyone please
help me in this? Is it that token generated using OAuth Playground
doesn't work here? Or is it that token will work only in a web
application? Or anything else?
PicasaService service = new
PicasaService("codesamples.google.com");
//service.SetAuthenticationToken(accessToken); //Doesn't
works
service.setUserCredentials("myUsername", "myPassword"); //
Works
AlbumQuery query = new
AlbumQuery(PicasaQuery.CreatePicasaUri(username));
PicasaFeed feed = service.Query(query);
--
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.