如何使用C#代码在windows Phone 8.1通用应用程序中向Google Blogger发布新帖子

如何使用C#代码在windows Phone 8.1通用应用程序中向Google Blogger发布新帖子,c#,windows-phone-8.1,win-universal-app,C#,Windows Phone 8.1,Win Universal App,我搜索了很多,我得到了下面的代码,但WP8.1中没有提供这项服务…向GoogleBlogger发布新帖子的替代代码是什么 Service service = new Service("blogger", "exampleCo-exampleApp-1"); service.Credentials = new GDataCredentials("user@example.com", "secretPassword"); GDataGAuthRequestFactory factory = (GDa

我搜索了很多,我得到了下面的代码,但WP8.1中没有提供这项服务…向GoogleBlogger发布新帖子的替代代码是什么

Service service = new Service("blogger", "exampleCo-exampleApp-1");
service.Credentials = new GDataCredentials("user@example.com", "secretPassword");
GDataGAuthRequestFactory factory = (GDataGAuthRequestFactory) service.RequestFactory;
factory.AccountType = "GOOGLE";

我建议您通过REST请求使用Blogger API v3.0。 下面是一个关于如何使用WebAuthenticationBroker类连接到OAuth 2.0提供商(如Google)的好例子

关于如何添加博客帖子的谷歌文档