I started learning the Twitter API. I want to make a simple search for a keyword e.g 'bananaz' and get some info from the JSON data it will return. I use PHP and abrahams twitteroauth library.
My code goes something like this:
require_once('/twitteroauth.php');
$connection = new TwitterOAuth ('****', '****', '****', '******');
$statuses = $connection->get('search/tweets.json?q=bananaz');
print_r($statuses);
But all it returns is "Sorry, that page does not exist [code] => 34"