Wednesday, April 11, 2012

How to grab tweets from Twitter using php

$tweets = 
json_decode(file_get_contents 
('http://twitter.com/statuses/user_timeline.json?
screen_name=USERNAME&count=10'));

var_dump($tweets);
 
 
//json_decode(file_get_contents()) function 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.