twitteroauth icon indicating copy to clipboard operation
twitteroauth copied to clipboard

Retrieving tweets with a certain hashtag.

Open sainathk21 opened this issue 13 years ago • 2 comments

Im looking to create a page which can retrieve tweets with a particular hashtag (Say #Twitter, for example). Im having difficulty understanding how to frame the query. I have all the connections made, I'm just not sure how to frame the actual get function. My search query is- https://api.twitter.com/1.1/search/tweets.json?q=%40Twitter

$Content = $connection->get(XXXXX) (Could not find an example using search tweets, so clueless about the structure of the query.

Any help is appreciated! Cheers

sainathk21 avatar Jul 25 '13 10:07 sainathk21

It should look something like this $Content = $connection->get('search/tweets', array('q' => '#twitter'));

abraham avatar Jul 25 '13 21:07 abraham

Thanks that helped!

sainathk21 avatar Jul 30 '13 18:07 sainathk21