public function Twitter::search_tweets in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::search_tweets()
- 7.5 twitter.lib.php \Twitter::search_tweets()
Returns a collection of relevant Tweets matching a specified query.
Parameters
string $query: A UTF-8, URL-encoded search query of 1,000 characters maximum, including operators.
array $params: an array of parameters.
Return value
array of Twitter statuses.
See also
https://dev.twitter.com/docs/api/1.1/get/search/tweets
File
- ./
twitter.lib.php, line 453 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- Primary Twitter API implementation class
Code
public function search_tweets($query, $params = array()) {
$params['q'] = $query;
return $this
->get_statuses('statuses/oembed', $params);
}