开发者

URL length limit for google reader api

I am using "/reader/api/0/stream/items/ids" API to get the item ids for sources that I want.

I have quite a number of sources, so I repeated "s=" parameter to include in the api url.

However, google has given me an error of "URL is too long".

So the question is that How can开发者_JS百科 I solve it so that I just use one time api call to get item ids for that many sources?

Thanks


It seems that /reader/api/0/stream/items/ids path supports a POST method. This means the amount of data you could pass by using POST verb is much more than by using a query string and a GET method.

So use https://www.google.com/reader/api/0/stream/items/ids URL for the post, and pass your query string as a post data. Don't forget to include an action token(T) which is required for POST requests.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜