Page 1 of 1

twitter top users

Posted: Tue Feb 16, 2010 6:47 pm
by umarrana
hello dear i am working on a twitter website can anybody help me how i can get top twitter users from the twitter api
thanks i am using this code for getting user info

Code: Select all

function getTwitterStatus($userid)
{
 
echo $url = "http://twitter.com/statuses/user_timeline/$userid.xml?count=1";
$xml = simplexml_load_file($url) or die("could not connect");
 
foreach($xml as $user)
{
    return $user;
}
 
 }