You are here

public function Twitter::statuses_sample in Twitter 7.6

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::statuses_sample()
  2. 7.5 twitter.lib.php \Twitter::statuses_sample()

Returns a small random sample of all public statuses.

Parameters

array $params: an array of parameters.

Return value

array of Twitter statuses.

See also

https://dev.twitter.com/docs/api/1.1/get/statuses/sample

File

./twitter.lib.php, line 567
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

Twitter
Primary Twitter API implementation class

Code

public function statuses_sample($params = array()) {
  return $this
    ->get_statuses('statuses/sample', $params);
}