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

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

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

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

		return json_decode($response->body);
	}
public function endSession()
	{
		$token = $this->getToken();

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

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

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

		return json_decode($response->body);
	}
public function endSession ( ) { $ token = $ this -> getToken ( ) ; // Set parameters. $ parameters = array ( 'oauth_token' => $ token [ 'key' ] ) ; // Set the API base $ path = 'https://api.twitter.com/1.1/account/end_session.json' ; // Send the request. $ response = $ this -> oauthRequest ( $ path , 'POST' , $ parameters ) ; return json_decode ( $ response -> body ) ; }
Ends the session of the authenticating user, returning a null cookie.

@return  array  The decoded JSON response

@since   1.0
Ends the session of the authenticating user returning a null cookie .