You are here

public function Twitter::users_contributees in Twitter 7.5

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

Returns a collection of users that the specified user can "contribute" to.

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/contributees

File

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