Skip to content

Instantly share code, notes, and snippets.

@AndreiRailean
Created December 2, 2008 10:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AndreiRailean/31083 to your computer and use it in GitHub Desktop.
Save AndreiRailean/31083 to your computer and use it in GitHub Desktop.
PHP: twitter status of user
<?php
$twit_user = 'andrei_md';
$url = 'http://twitter.com/users/show/'.$twit_user.'.json';
$twitter_user = json_decode(file_get_contents($url));
echo $twitter_user->status->text;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment