public function Twitter::users_show in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::users_show()
- 7.6 twitter.lib.php \Twitter::users_show()
- 7.3 twitter.lib.php \Twitter::users_show()
- 7.5 twitter.lib.php \Twitter::users_show()
Returns profile information about a user.
See also
https://dev.twitter.com/docs/api/1/get/users/show
File
- ./
twitter.lib.php, line 204 - Classes to implement the full Twitter API
Class
- Primary Twitter API implementation class Supports the full REST API for twitter.
Code
public function users_show($id, $use_auth = TRUE) {
$params = array();
if (is_numeric($id)) {
$params['user_id'] = $id;
}
else {
$params['screen_name'] = $id;
}
if ($values = $this
->call('users/show', $params, 'GET', $use_auth)) {
return new TwitterUser($values);
}
}