[WP8.1]如何使用http请求在Windows Phone 8.1中验证给定的博客uri [英] [WP8.1]How to authenticate Given blogger uri in windows phone 8.1 using http request
问题描述
我在此网址中找到了从谷歌博客获取帖子的溃疡
I find the ulrs to get posts from google blogger in this url
https://developers.google.com/blogger/docs/3.0/using 但没有关于如何使用网址的代码
https://developers.google.com/blogger/docs/3.0/using but there is no code to how to use the urls
我使用下面的代码来获取博客详细信息
I used this below code to get blogger details
var request = new HttpRequestMessage(HttpMethod.Get, new Uri("https://www.googleapis.com/blogger/v3/blogs/4310477689444728962/posts"));
我在这里停下来我不知道下一个过程是什么..请帮我从博主那里获取/发布信息。
I am stopped here i don't know what is the next process.. please help me to get/post feeds from blogger.
推荐答案
您需要使用授权令牌为帖子添加标头。 您需要使用博客oauth 2.0对应用进行身份验证才能获得令牌。
You need to add a header to the post with the Authorization token. You will need to authenticate the app with blogger oauth 2.0 to get a token.
http://solutiondesign.com/blog/-/blogs/google-oauth-2-0-via-windows-8-pho-1/
Authorization: /* OAuth 2.0 token here */
这篇关于[WP8.1]如何使用http请求在Windows Phone 8.1中验证给定的博客uri的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!