我试图从谷歌阅读器api中检索一个选定的项目.是否有我可以通过ID获取项目的api调用,或者我是否必须访问该项目Feed并从那里获取它?
您可以使用POST来http://www.google.com/reader/api/0/stream/items/contents,使用i =作为输入(您可以重复i =参数以获取多个项目内容).
这是卷曲调用的示例:
$ 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",
Run Code Online (Sandbox Code Playgroud)
输出格式默认为JSON,您可以添加output = atom参数将其切换为Atom.
| 归档时间: |
|
| 查看次数: |
1077 次 |
| 最近记录: |