开发者

Multiple tags / folders in Google Reader

开发者 https://www.devze.com 2023-03-05 03:11 出处:网络
I want to be able to grab data from multiple tags / folders in a use开发者_StackOverflow社区rs Google Reader.

I want to be able to grab data from multiple tags / folders in a use开发者_StackOverflow社区rs Google Reader.

I know how to do one http://www.google.com/reader/atom/user/-/label/SOMELABEL but how would you do two or three or ten?


Doesn't look like you can get multiple tags/folders in one request. If it's feasible you should iterate over the different tags/folders and aggregate them in your application.

[edit] Since it looks like you have a large list of tags/folders you need to query, an alternative is to get the full list of entries, then sort out the ones the user wants. It looks like each entry has a category element that will tell you what tag is associated with it. This might be feasible in your case.

(Source: http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI) (Source: http://www.google.com/reader/atom/user/-/state/com.google/starred)


I think you cannot get aggregated data as you hope to be able to. If you think about it, even Google lets you browse folders or tags one at a time, and do not aggregate a sub-set of them.

You can choose to have a list of all the items (for each one of their available statuses) or a list of a particular tag/folder.


You could do it in 2 requests. First you need to perform a GET request to http://www.google.com/reader/stream/items/ids. It supports several parameters like

  • s (required parameter; stream id to fetch; may be defined more than one time),
  • n (required; number of items to fetch)
  • r for ranking (optional)
  • and others (see more under /ids section)

And then you should perform a POST request (this is because there could be a lot of ids, and therefore the request could be cut off) to http://www.google.com/reader/api/0/stream/items/contents. The required parameter is i which holds the feed item identifier (could be defined more than once).

This should return data from several feeds (as returned for me).

0

精彩评论

暂无评论...
验证码 换一张
取 消