Skip to content

Instantly share code, notes, and snippets.

@alvaroveliz
Created October 18, 2014 15:54
Show Gist options
  • Save alvaroveliz/5fda2a3be93980a58891 to your computer and use it in GitHub Desktop.
Save alvaroveliz/5fda2a3be93980a58891 to your computer and use it in GitHub Desktop.
Consultar la lista de menciones
<?php
require_once('twitteroauth/twitteroauth.php');
$consumer_key = 'aqui va tu consumer key';
$consumer_secret = 'aqui va tu consumer secret';
$access_token = 'aqui va tu consumer access token';
$access_token_secret = 'aqui va tu consumer access token secret';
// Se crea el objeto "TwitterOauth" con las configuraciones
$twitter = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);
$mentions = $twitter->get('statuses/mentions');
print_r($mentions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment