如何使用OAuth2.0访问Google Feed(阅读器)? [英] How to access Google feeds(Reader) with OAuth2.0?

查看:99
本文介绍了如何使用OAuth2.0访问Google Feed(阅读器)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用OAuth2.0访问google feed.我使用 google-oauth-java-client 获得访问权限令牌.如何使用它来访问提要API?

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?

我引用了 dailymotion-cmdline -sample ,并将SCOPE更改为http://www.google.com/reader/api以获取凭据.

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

它返回:

401 Unauthorized

You must be signed in to access this stream.

我不知道怎么了...

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

我还阅读了一些文章,这些文章表明OAuth2.0可以完成这项工作,但对我来说还不够详细:

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

仅对Google OAuth 2.0令牌具有读取权限?

使用Google阅读器API

使用OAuth2 access_token访问Google Reader订阅

推荐答案

我的范围与http://www.google.com/reader/api/*相同. 我通过将范围更改为http://www.google.com/reader/api/来解决了该问题. 最后尝试/.

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.

这篇关于如何使用OAuth2.0访问Google Feed(阅读器)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆