public function Twitter::statuses_filter in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::statuses_filter()
- 7.5 twitter.lib.php \Twitter::statuses_filter()
Returns public statuses that match one or more filter predicates.
At least one predicate parameter (follow, locations, or track) must be specified.
Parameters
string $follow: A comma separated list of user IDs.
string $track: Keywords to track.
string $locations: Specifies a set of bounding boxes to track.
array $params: an array of parameters.
Return value
array of Twitter statuses.
See also
https://dev.twitter.com/docs/api/1.1/post/statuses/filter
File
- ./
twitter.lib.php, line 479 - 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 statuses_filter($follow = '', $track = '', $locations = '', $params = array()) {
if (!empty($follow)) {
$params['follow'] = $follow;
}
if (!empty($track)) {
$params['track'] = $track;
}
if (!empty($locations)) {
$params['locations'] = $locations;
}
return $this
->call('statuses/filter', $params, 'POST');
}