使用OAuth2 access_token访问Google阅读器订阅 [英] Accessing Google Reader subscriptions with OAuth2 access_token
问题描述
是否可以使用OAuth2 access_token访问Google阅读器订阅?我已经创建了Google API项目,设置了域并创建了接收OAuth2令牌的javascript代码.它适用于其他Google API,但不适用于Google Reader OPML订阅.有人可以提示我吗?
Is that possible to access Google Reader subscriptions using OAuth2 access_token? I've created Google APIs project, setting up domain and created javascript code that receives OAuth2 token. It works well for other Google APIs, but not for Google Reader OPML subscriptions. Could anyone hint me?
推荐答案
似乎我已经解决了自己.诀窍是,从浏览器获取代码"令牌后,您应该执行对 https://accounts的调用.google.com/o/oauth2/token 获取access_token,token_type,expires_in和refresh_token.
Seems I've solved myself. The trick was that after obtaining "code" token from browser, you should perform call to https://accounts.google.com/o/oauth2/token to obtain access_token, token_type, expires_in and refresh_token.
另一个重要的事情是,您应该将范围定义为 http://www.google.com/reader/api 不是 http://www.google.com/reader/api/ *如某处所述.
Another important thing is that you should define scope as http://www.google.com/reader/api not http://www.google.com/reader/api/* as stated somewhere.
这篇关于使用OAuth2 access_token访问Google阅读器订阅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!