【问题标题】:Google Reader OAuth mark as readGoogle Reader OAuth 标记为已读
【发布时间】:2011-08-17 20:58:58
【问题描述】:

我正在使用 Google Reader API(非官方)和 OAuth 身份验证。所有 GET 请求都可以正常工作,但不能 POST 请求(例如将条目标记为已读) - 它们返回 401 错误而无需进一步解释。我在代码(C#)和Google OAuth Playground 中尝试了这个,得到了同样的 401 错误。我应该向 Google Reader 发送什么请求以将条目标记为已读?

【问题讨论】:

  • 您可以发布您现在发送的收到 401 错误的内容吗?
  • 我将 a=user/-/state/com.google/read&ac=edit&i=tag:google.com,2005:reader/item/daef3c61fd4eaa89&T=//UNSYt0wcFmqNwotdcv6Qnw 作为 POST 正文和 OAuth oauth_consumer_key="xxxx", oauth_signature_method="HMAC-SHA1", oauth_signature="xxxx", oauth_timestamp="1313566485", oauth_nonce="xxxx", oauth_version="1.0", oauth_token="xxxx" 作为 Authorization 标头的值发送到 URL google.com/reader/api/0/edit-tag
  • 之前我使用了登录名/密码验证,同样的 POST 请求(当然,没有 Authorization 标头)运行良好。

标签: api post oauth google-reader


【解决方案1】:

问题通过使用 Google 实验性 OAuth2 授权解决,可以在 http://code.google.com/apis/accounts/docs/OAuth2.html 找到文档。自行实现这个协议并没有我想象的那么困难 =)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-07
    • 1970-01-01
    • 1970-01-01
    • 2014-12-18
    • 1970-01-01
    • 2015-10-08
    相关资源
    最近更新 更多