开发者

trying to fetch user tweet stream in php

开发者 https://www.devze.com 2023-01-24 06:10 出处:网络
I am using the following code, but it showing a 404 error $url = \"http://api.twitter.com/version/statuses/user开发者_运维技巧_timeline.json\";

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

精彩评论

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