You are here

public function Twitter::friends_ids in Twitter 6.5

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

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

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/friends/ids

File

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