开发者

trying to fetch user tweet stream in php

I am using the following code, but it showing a 404 error

$url = "http://api.twitter.com/version/statuses/user开发者_运维技巧_timeline.json";

$call = file_get_contents($url);


There's no 'version' version. The Twitter API is currently version 1, so you need http://api.twitter.com/1/statuses/user_timeline.json.

Do note that Twitter can't read your mind, so you'll need to tell Twitter which user's timeline you want to fetch... i.e. http://api.twitter.com/1/statuses/user_timeline.json?screen_name=ceejayoz

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜