public function getAccessToken($oauth_verifier = null)
	{
		$parameters = [];

		if (!empty($oauth_verifier))
		{
			$parameters['oauth_verifier'] = $oauth_verifier;
		}

		parent::request('GET', parent::url($this->tconfig['ACCESS_TOKEN_URL'], ''),  $parameters);

		$response = $this->response;

		if (isset($response['code']) && $response['code'] == 200 && !empty($response))
		{
			$get_parameters = $response['response'];
			$token = [];
			parse_str($get_parameters, $token);

			// Reconfigure the tmhOAuth class with the new tokens
			$this->reconfig([
				'token'  => $token['oauth_token'],
				'secret' => $token['oauth_token_secret'],
			]);

			return $token;
		}

		throw new RunTimeException($response['response'], $response['code']);
	}
public function getAccessToken($oauth_verifier = null)
	{
		$parameters = [];

		if (!empty($oauth_verifier))
		{
			$parameters['oauth_verifier'] = $oauth_verifier;
		}

		parent::request('GET', parent::url($this->tconfig['ACCESS_TOKEN_URL'], ''),  $parameters);

		$response = $this->response;

		if (isset($response['code']) && $response['code'] == 200 && !empty($response))
		{
			$get_parameters = $response['response'];
			$token = [];
			parse_str($get_parameters, $token);

			// Reconfigure the tmhOAuth class with the new tokens
			$this->reconfig([
				'token'  => $token['oauth_token'],
				'secret' => $token['oauth_token_secret'],
			]);

			return $token;
		}

		throw new RunTimeException($response['response'], $response['code']);
	}
public function getAccessToken ( $ oauth_verifier = null ) { $ parameters = [ ] ; if ( ! empty ( $ oauth_verifier ) ) { $ parameters [ 'oauth_verifier' ] = $ oauth_verifier ; } parent :: request ( 'GET' , parent :: url ( $ this -> tconfig [ 'ACCESS_TOKEN_URL' ] , '' ) , $ parameters ) ; $ response = $ this -> response ; if ( isset ( $ response [ 'code' ] ) && $ response [ 'code' ] == 200 && ! empty ( $ response ) ) { $ get_parameters = $ response [ 'response' ] ; $ token = [ ] ; parse_str ( $ get_parameters , $ token ) ; // Reconfigure the tmhOAuth class with the new tokens $ this -> reconfig ( [ 'token' => $ token [ 'oauth_token' ] , 'secret' => $ token [ 'oauth_token_secret' ] , ] ) ; return $ token ; } throw new RunTimeException ( $ response [ 'response' ] , $ response [ 'code' ] ) ; }
Get an access token for a logged in user

@returns Array|Bool key/value array containing the token in case of success
Get an access token for a logged in user