Accessing Google Reader subscriptions with OAuth2 access_token

让人想犯罪 __ 提交于 2020-01-12 02:33:11

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/8530790/accessing-google-reader-subscriptions-with-oauth2-access-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!