我目前有以下网址,但它会搜索关键字而不仅仅是用户Feed.
我希望我的用户只能提供用户名,并在其个人资料中显示Feed.
我应该使用什么网址来获取包含旧帖子的用户Feed?
Jam*_*xon 21
我想你要找的是:
http://twitter.com/statuses/user_timeline/%USERID%.rss
Run Code Online (Sandbox Code Playgroud)
其中%USERID%是相关用户的ID.
例如,我自己的时间轴的网址是:
http://twitter.com/statuses/user_timeline/16979198.rss
Run Code Online (Sandbox Code Playgroud)
16979198是我的用户ID号.
UPDATE
根据Twitter API,您也可以对用户用户名执行相同的操作,如下所示:
http://twitter.com/statuses/user_timeline/%USERNAME%.rss
Run Code Online (Sandbox Code Playgroud)
%USERNAME%是您要查看的人的用户名.
例如:
http://twitter.com/statuses/user_timeline/jamiedixon.rss
Run Code Online (Sandbox Code Playgroud)
您还可以.rss使用其他数据类型替换链接部分.json .atom
有关Twitter API和时间表的更多信息,请访问:
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_timeline