public function verifyCredentials()
	{
		$token = $this->getToken();

		// Set the parameters.
		$parameters = array('oauth_token' => $token['key']);

		// Set the API base
		$path = 'https://api.twitter.com/1.1/account/verify_credentials.json';

		// Send the request.
		$response = $this->oauthRequest($path, 'GET', $parameters);

		// Verify response
		if ($response->code == 200)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
public function verifyCredentials()
	{
		$token = $this->getToken();

		// Set the parameters.
		$parameters = array('oauth_token' => $token['key']);

		// Set the API base
		$path = 'https://api.twitter.com/1.1/account/verify_credentials.json';

		// Send the request.
		$response = $this->oauthRequest($path, 'GET', $parameters);

		// Verify response
		if ($response->code == 200)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
public function verifyCredentials ( ) { $ token = $ this -> getToken ( ) ; // Set the parameters. $ parameters = array ( 'oauth_token' => $ token [ 'key' ] ) ; // Set the API base $ path = 'https://api.twitter.com/1.1/account/verify_credentials.json' ; // Send the request. $ response = $ this -> oauthRequest ( $ path , 'GET' , $ parameters ) ; // Verify response if ( $ response -> code == 200 ) { return true ; } else { return false ; } }
Method to verify if the access token is valid by making a request.

@return  boolean  Returns true if the access token is valid and false otherwise.

@since   1.0
Method to verify if the access token is valid by making a request .