You are here

public function TwitterUser::is_auth in Twitter 6.5

Same name and namespace in other branches
  1. 7.5 twitter.lib.php \TwitterUser::is_auth()

Checks whether the account is authenticated or not.

Return value

boolean TRUE when the account is authenticated.

File

./twitter.lib.php, line 1427
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

TwitterUser

Code

public function is_auth() {
  return !empty($this->oauth_token) && !empty($this->oauth_token_secret);
}