You are here

protected function Twitter::users_lookup in Twitter 7.6

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

Returns fully-hydrated user objects for up to 100 users per request, as specified by comma-separated values passed to the user_id and/or screen_name parameters.

Parameters

string $screen_name: A comma separated list of screen names.

string user_id: A comma separated list of user IDs.

bool $include_entities: Whether to include entities or not.

See also

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

File

./twitter.lib.php, line 1142
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

protected function users_lookup($screen_name = NULL, $user_id = NULL, $include_entities = NULL) {
  if ($screen_name !== NULL) {
    $params['screen_name'] = $screen_name;
  }
  if ($user_id !== NULL) {
    $params['user_id'] = $user_id;
  }
  if ($include_entities !== NULL) {
    $params['include_entities'] = $include_entities;
  }
  return $this
    ->get_users('users/lookup', $params);
}