You are here

public function Twitter::users_show in Twitter 7.6

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::users_show()
  2. 6.3 twitter.lib.php \Twitter::users_show()
  3. 7.3 twitter.lib.php \Twitter::users_show()
  4. 7.5 twitter.lib.php \Twitter::users_show()

Returns a variety of information about the user specified by the required screen_name parameter.

Parameters

string $screen_name: The screen name of a Twitter user.

bool $include_entities: Whether to include entities or not.

See also

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

File

./twitter.lib.php, line 1167
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_show($screen_name, $include_entities = NULL) {
  $params = array();
  $params['screen_name'] = $screen_name;
  if ($include_entities !== NULL) {
    $params['include_entities'] = $include_entities;
  }
  $values = $this
    ->call('users/show', $params, 'GET');
  return new TwitterAccount($values);
}