开发者

URL length limit for google reader api

开发者 https://www.devze.com 2023-04-05 16:53 出处:网络
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.

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

精彩评论

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