Google reader API 获取单个项目

发布于 2024-09-11 23:04:44 字数 94 浏览 4 评论 0原文

我正在尝试从 google reader api 检索单个选定的项目。我是否可以进行 api 调用来通过 ID 获取项目,或者我是否必须访问该项目 feed 并从那里获取它?

I am trying to retrive a single selected item from the google reader api. Is there an api call I can make to get an item by Id or do I have to access that items feed and get it from there?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转身以后 2024-09-18 23:04:45

您可以使用 POST 来 http://www.google.com/reader /api/0/stream/items/contents 使用 i= 作为输入(您可以重复 i= 参数来获取多个项目内容)。

下面是一个示例curl调用:

$ curl -d "i=tag:google.com,2005:reader/item/1bab1bbe8a8ad82f" http://www.google.com/reader/api/0/stream/items/contents
{"direction":"ltr","id":"feed/http://googlereader.blogspot.com/atom.xml","title":"Official Google Reader Blog","description":"News, tips and tricks from the Google reader team.","self":[{"href":"http://www.google.com/reader/api/0/stream/items/contents"}],"alternate":[{"href":"http://googlereader.blogspot.com/","type":"text/html"}],"updated":1275437593,"items":[{"crawlTimeMsec":"1275437593933","id":"tag:google.com,2005:reader/item/1bab1bbe8a8ad82f","categories":[],"title":"Folder and tag renaming",

输出格式默认为JSON,您可以添加output=atom参数将其切换为Atom。

You can use POST to http://www.google.com/reader/api/0/stream/items/contents using i= as the input (you can repeat the i= parameter to get multiple item contents).

Here's a sample curl invocation:

$ curl -d "i=tag:google.com,2005:reader/item/1bab1bbe8a8ad82f" http://www.google.com/reader/api/0/stream/items/contents
{"direction":"ltr","id":"feed/http://googlereader.blogspot.com/atom.xml","title":"Official Google Reader Blog","description":"News, tips and tricks from the Google reader team.","self":[{"href":"http://www.google.com/reader/api/0/stream/items/contents"}],"alternate":[{"href":"http://googlereader.blogspot.com/","type":"text/html"}],"updated":1275437593,"items":[{"crawlTimeMsec":"1275437593933","id":"tag:google.com,2005:reader/item/1bab1bbe8a8ad82f","categories":[],"title":"Folder and tag renaming",

The output format is JSON by default, you can add a output=atom parameter to switch it to Atom.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文