You are here

public function Twitter::followers_ids in Twitter 7.5

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

Returns a cursored collection of user IDs for every user following the specified user.

Parameters

mixed $id: The user ID or the screen name.

Return value

An array of user IDS.

See also

https://dev.twitter.com/docs/api/1.1/get/followers/ids

File

./twitter.lib.php, line 719
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 followers_ids($id, $params = array()) {
  if (is_numeric($id)) {
    $params['user_id'] = $id;
  }
  else {
    $params['screen_name'] = $id;
  }
  return $this
    ->call('followers/ids', $params, 'GET');
}