You are here

public function Twitter::users_contributors in Twitter 7.5

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

Returns a collection of users who can contribute to the specified account.

Parameters

mixed $id: The numeric id or screen name of a Twitter user.

array $params: an array of parameters.

See also

https://dev.twitter.com/docs/api/1.1/get/users/contributors

File

./twitter.lib.php, line 1198
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 users_contributors($id, $params = array()) {
  if (is_numeric($id)) {
    $params['user_id'] = $id;
  }
  else {
    $params['screen_name'] = $id;
  }
  return $this
    ->get_users('users/contributors', $params);
}