twitter top users

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
umarrana
Forum Newbie
Posts: 1
Joined: Tue Feb 16, 2010 6:40 pm

twitter top users

Post 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;
}
 
 }
Post Reply