我使用Blogger API v3 ..
找到以下代码以下代码正在运行,但问题是,它要求博主登录用户。我在Apps中使用了此代码,然后用户如何登录我的博客..
var credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
new Uri("ms-appx:///Json/client_secret.json"),
new[] { BloggerService.Scope.Blogger },
"lartpeopleindiancinema@gmail.com",
CancellationToken.None);
var initializer = new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
ApplicationName = "Admin Site Old",
};
service = new BloggerService(initializer);