如何在Windows Phone 8.1 Universal Apps中使用HttpWebrequest对Google Blogger进行身份验证

时间:2015-08-04 04:46:15

标签: c# windows-phone-8.1 blogger win-universal-app

我使用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);

0 个答案:

没有答案