You are here: Home >Archive for the ‘php’ Category

Obtener último tweet con PHP

Este código sirve para obtener el último tweet de una cuenta específica con PHP: $username=”el_nombre_de_usuario”; $format=”xml”; $tweet=simplexml_load_file(“http://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}”); echo $tweet->status[0]->text;

Tags: , ,