string[] scopes = new[] { BloggerService.Scope.Blogger, @"https://picasaweb.google.com/data/" };
// string[] scopes = new[] { BloggerService.Scope.Blogger };
try
{
using (var stream = new System.IO.FileStream("client_secrets.json", System.IO.FileMode.Open, System.IO.FileAccess.Read))
{
CancellationToken = new CancellationToken();
Credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
GoogleClientSecrets.Load(stream).Secrets,
scopes, //new[] { BloggerService.Scope.Blogger },
"user",
CancellationToken.None);
}
string picasaURL = CreatePublicGalleryUrlRequest(Credential.Token.AccessToken);
await GetAlbums(picasaURL);
No comments:
Post a Comment