How to access Google feeds(Reader) with OAuth2.0?

♀尐吖头ヾ 提交于 2019-12-10 00:18:17

问题


I want to access google feeds with OAuth2.0. I used google-oauth-java-client to get my access token. How can I use it to access the feeds API?

I referenced dailymotion-cmdline-sample, and changed SCOPE as http://www.google.com/reader/api to fetch the credential.

It returns:

401 Unauthorized

You must be signed in to access this stream.

And I don't know what's wrong...

I also read some posts which shows OAuth2.0 is possible to do this job, but they are not detailed enough to me:

Read access only for the Google OAuth 2.0 token?

Using the Google Reader API

Accessing Google Reader subscriptions with OAuth2 access_token


回答1:


I had the same problem with the scope as http://www.google.com/reader/api/*. I solved it by changing the scope to http://www.google.com/reader/api/. Try with the / at the end.



来源:https://stackoverflow.com/questions/12724154/how-to-access-google-feedsreader-with-oauth2-0

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