Skip to content

Instantly share code, notes, and snippets.

@baudryj
Created June 13, 2013 12:09
Show Gist options
  • Save baudryj/5773188 to your computer and use it in GitHub Desktop.
Save baudryj/5773188 to your computer and use it in GitHub Desktop.
twitter codeigniter
public function index()
{
$this->load->library('twitteroauth');
$connection = $this->twitteroauth->create("MiQDDYJCjO345iqIwEFA", "mEooj5IxB58rL9Ku1JYNDohgmrYccMStiPGIBNTUw9M", "91083851-zyABcTEs62pTaeIncamH1PJN8p81Va0uycS6aCHJk", "OG2PI8Bc3AxjyKAOp2jn7QXkaoRP9ptGK6tACWI4k");
//$content = $connection->get('account/verify_credentials');
//$content = $connection->get('https://api.twitter.com/1.1/users/search.json?q=armada%20rouen&page=1&count=3');
//$content = $connection->get('https://api.twitter.com/1.1/geo/search.json?query=rouen');
//$content = $connection->get('https://api.twitter.com/1.1/geo/id/4fb6ac0e7b585584.json');
//$content = $connection->get('http://twitter.com/search?q=place%3A4fb6ac0e7b585584');
$content = $connection->get('https://api.twitter.com/1.1/search/tweets.json?q=place%3A4fb6ac0e7b585584&since_id=24012619984051000&max_id=250126199840518145&result_type=mixed&count=4');
$content = $connection->get('https://api.twitter.com/1.1/search/tweets.json?q=place%3A4fb6ac0e7b585584');
print_r($content);
//$this->load->view('welcome_message');
//redirect("/visio");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment