Twitteroauth Abraham search/tweets


#1

Hello all,

Im completely lost with 1.1 search/tweets. Im sorry about my english and dummy questions.

I was using

"http://search.twitter.com/search.json?q=

to perfom some database updates.

As I’ve moved to 1.1, I can signing in with twitteroauth library of Abraham. Im authenticated normally.

But, while using

$query = "https://api.twitter.com/1.1/search/tweets.json?q=
$parameters = array(‘q’ => $query);
$trends_url = $connection->get(‘search/tweets’, $parameters);

print_r($trends_url);

My response is something like this:

stdClass Object ( [statuses] => Array ( )
[search_metadata] => stdClass Object ( [completed_in] => 0.042
[max_id] => 348494122904080384
[max_id_str] => 348494122904080384
[query] => https%3A%2F%2Fapi.twitter.com%2F1.1%2Fsearch%2Ftweets.json%3Fq%3Dnovela%26lang%3Dpt%26count%3D5%26result_type%3Dpopular
[refresh_url] => ?since_id=348494122904080384&q=https%3A%2F%2Fapi.twitter.com%2F1.1%2Fsearch%2Ftweets.json%3Fq%3Dnovela%26lang%3Dpt%26count%3D5%26result_type%3Dpopular&include_entities=1
[count] => 15
[since_id] => 0
[since_id_str] => 0 )
)

It seems my doubt is more a PHP issue. How can I explode this and retrieve the tweets?

I was using curl do decode the JSON. But where is the tweets?