private function _generateAccessToken()
	{
		// Set the parameters.
		$parameters = array(
			'oauth_token' => $this->token['key']
		);

		if (strcmp($this->version, '1.0a') === 0)
		{
			$parameters = array_merge($parameters, array('oauth_verifier' => $this->token['verifier']));
		}

		// Make an OAuth request for the Access Token.
		$response = $this->oauthRequest($this->getOption('accessTokenURL'), 'POST', $parameters);

		parse_str($response->body, $params);

		// Save the access token.
		$this->token = array('key' => $params['oauth_token'], 'secret' => $params['oauth_token_secret']);
	}
private function _generateAccessToken()
	{
		// Set the parameters.
		$parameters = array(
			'oauth_token' => $this->token['key']
		);

		if (strcmp($this->version, '1.0a') === 0)
		{
			$parameters = array_merge($parameters, array('oauth_verifier' => $this->token['verifier']));
		}

		// Make an OAuth request for the Access Token.
		$response = $this->oauthRequest($this->getOption('accessTokenURL'), 'POST', $parameters);

		parse_str($response->body, $params);

		// Save the access token.
		$this->token = array('key' => $params['oauth_token'], 'secret' => $params['oauth_token_secret']);
	}
private function _generateAccessToken ( ) { // Set the parameters. $ parameters = array ( 'oauth_token' => $ this -> token [ 'key' ] ) ; if ( strcmp ( $ this -> version , '1.0a' ) === 0 ) { $ parameters = array_merge ( $ parameters , array ( 'oauth_verifier' => $ this -> token [ 'verifier' ] ) ) ; } // Make an OAuth request for the Access Token. $ response = $ this -> oauthRequest ( $ this -> getOption ( 'accessTokenURL' ) , 'POST' , $ parameters ) ; parse_str ( $ response -> body , $ params ) ; // Save the access token. $ this -> token = array ( 'key' => $ params [ 'oauth_token' ] , 'secret' => $ params [ 'oauth_token_secret' ] ) ; }
Method used to get an access token.

@return void

@since  1.0
Method used to get an access token .