刚刚完成了Google Reader上所有feed中图片自动下载脚本。
现在总结几点在网上找到不到tips:
1.to get all new item that in your google reader subscription
http://www.google.com/reader/api/0/stream/contents/user%2F{$user_id}%2Flabel%2FImages?ot={$last_month}&r=n&xt=user%2F{$user_id}%2Fstate%2Fcom.google%2Fread&n=500
ot: expire item timestamp
n: item numbers once request
*result is JSON format.
2.call google reader api to set "read" state which always getting 400 error from google.
to use POST method to fix 400 error.
POST URL: http://www.google.com/reader/api/0/edit-tag
POST FIELDS:a=user/{$user_id}/state/com.google/read&s={$feed}&i={$item_id}&T={$token}
现在我的小脚本正在疯狂下载中,哈哈哈哈哇。
iOS Developer
Tuesday, July 21, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment