使用 Google Reader 的 API 添加注释
有谁知道如何使用 Google Reader 的 API 添加注释? 在查看他们的一些代码时,我注意到它可能与“/reader/api/0/item/edit”URL 有关,但我在任何地方都找不到此记录。
Does anyone know how to add a note using Google Reader's API? In looking at some of their code, I've noticed that it might have something to do with the "/reader/api/0/item/edit" URL, but I can't find this documented anywhere.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
上面的答案缺少完整的查询参数集。
它们记录在此处:http://www .google.com/support/reader/bin/answer.py?hl=zh-CN&answer=147149
The answer above is missing the full set of query parameters.
They are documented here: http://www.google.com/support/reader/bin/answer.py?hl=en&answer=147149
发帖到 http://www.google.com/reader/api/ 0/item/edit
您需要添加 SID cookie,并从 API 获取令牌才能正常工作。
参数是:
T = 令牌字符串
share = 公开注释,“true”或“false”值
snippet = 注释正文
还有一个“linkify”参数,尽管我还没有弄清楚它是什么确实有一个。
Do a POST to http://www.google.com/reader/api/0/item/edit
You'll need to add your SID cookie, and also get a token from the API for it to work.
Params are:
T = token string
share = make the note public, "true" or "false" values
snippet = the body of the note
There's also a "linkify" parameter, although I haven't been able to figure out yet what that one actually does.
这对我有用:
Here is what works for me: