I have accessed picasa by combining Oauth2 and old api
>
>
 //client_secrets.json file that i got from google developers console when 
i registered my app
   UserCredential credential;
                using (var stream = new FileStream("client_secrets.json", 
FileMode.Open, FileAccess.Read)) 
                {
                    credential = await 
GoogleWebAuthorizationBroker.AuthorizeAsync(
                        GoogleClientSecrets.Load(stream).Secrets,
                        new[] { "https://picasaweb.google.com/data/"; },
                        "default", CancellationToken.None);
                }

                GAuthSubRequestFactory authFactory = new 
GAuthSubRequestFactory("lh2", "my-app");
                authFactory.Token = credential.Token.AccessToken;

                PicasaService service = new 
PicasaService(authFactory.ApplicationName);
                service.RequestFactory = authFactory;

                AlbumQuery query = new 
AlbumQuery(PicasaQuery.CreatePicasaUri("default"));
                PicasaFeed feed = service.Query(query);
                string uri = "";
                foreach (PicasaEntry entry in feed.Entries)
                { .....
This code works fine. Hope it will help somebody. I`ve spen 2 days on that.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to