【问题标题】:How to access Google feeds(Reader) with OAuth2.0?如何使用 OAuth2.0 访问 Google 提要(阅读器)?
【发布时间】:2012-09-25 07:19:53
【问题描述】:

我想使用 OAuth2.0 访问谷歌提要。我使用google-oauth-java-client 来获取我的访问令牌。如何使用它来访问提要 API?

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

返回:

401 Unauthorized

You must be signed in to access this stream.

我也不知道怎么了……

我还阅读了一些帖子,显示 OAuth2.0 可以完成这项工作,但对我来说还不够详细:

Read access only for the Google OAuth 2.0 token?

Using the Google Reader API

Accessing Google Reader subscriptions with OAuth2 access_token

【问题讨论】:

    标签: java oauth-2.0 google-authentication google-feed-api


    【解决方案1】:

    我的作用域问题与http://www.google.com/reader/api/* 相同。 我通过将范围更改为http://www.google.com/reader/api/ 来解决它。 最后用/ 试试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-18
      相关资源
      最近更新 更多