public function Twitter::users_show in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::users_show()
- 6.3 twitter.lib.php \Twitter::users_show()
- 7.6 twitter.lib.php \Twitter::users_show()
- 7.3 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 1142 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- 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 TwitterUser($values);
}