public function Twitter::verify_credentials in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::verify_credentials()
- 6.3 twitter.lib.php \Twitter::verify_credentials()
- 7.6 twitter.lib.php \Twitter::verify_credentials()
- 7.3 twitter.lib.php \Twitter::verify_credentials()
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
Parameters
array $params: An array of parameters.
Return value
A TwitterUser object or FALSE.
See also
https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials
File
- ./
twitter.lib.php, line 918 - 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 verify_credentials($params = array()) {
$values = $this
->call('account/verify_credentials', $params, 'GET');
if (!$values) {
return FALSE;
}
return new TwitterUser($values);
}