Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/12/2013, 07:58
alexperaza
 
Fecha de Ingreso: diciembre-2012
Mensajes: 178
Antigüedad: 11 años, 4 meses
Puntos: 2
Respuesta: Ver Tweets en tiempo real con la API de Twitter

yo utilizo este codigo con su libreria

Código PHP:
Ver original
  1. $consumerKey    = 'xxxxxxxxxxxxx';
  2. $consumerSecret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
  3. $oAuthToken     = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
  4. $oAuthSecret    = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
  5.  
  6. // incluimos la librería para usar la API OAuth
  7. require_once('twitteroauth.php');
  8.  
  9. $tweet = new TwitterOAuth($consumerKey, $consumerSecret, $oAuthToken, $oAuthSecret);
  10.  
  11. # aqui tu lógica para recoger el contenido del tweet, ya sea de tu bbdd, feed, rss o fichero
  12. $mensajetweet= "tweet ".$link;
  13. $tweet->post('statuses/update', array('status' => $mensajetweet));

Espero que sea lo que buscas
__________________
clasificados nunca se sabe todo