【问题标题】:Accessing Google Reader subscriptions with OAuth2 access_token使用 OAuth2 access_token 访问 Google Reader 订阅
【发布时间】:2012-01-21 18:43:57
【问题描述】:

是否可以使用 OAuth2 access_token 访问 Google Reader 订阅?我创建了 Google APIs 项目、设置域并创建了接收 OAuth2 令牌的 javascript 代码。它适用于其他 Google API,但不适用于 Google Reader OPML 订阅。有人可以提示我吗?

【问题讨论】:

标签: oauth-2.0 access-token google-reader


【解决方案1】:

看来我自己解决了。诀窍是,在从浏览器获取“code”令牌后,你应该调用https://accounts.google.com/o/oauth2/token来获取access_token、token_type、expires_in和refresh_token。

另一件重要的事情是,您应该将范围定义为 http://www.google.com/reader/api 而不是 http://www.google.com/reader/api/* 如某处所述。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-01-23
  • 2019-05-01
  • 1970-01-01
  • 2011-01-05
  • 1970-01-01
  • 1970-01-01
  • 2016-09-27
相关资源
最近更新 更多