protected function createApiInstance()
	{
		$configToken = $this->getConfig('token');

		if ($configToken === null)
		{
			throw new InvalidArgumentException('API token has not been set in the config.');
		}

		$token = new Token($configToken);
		$this->api = new Api();
		$this->api->setToken($token);
	}
protected function createApiInstance()
	{
		$configToken = $this->getConfig('token');

		if ($configToken === null)
		{
			throw new InvalidArgumentException('API token has not been set in the config.');
		}

		$token = new Token($configToken);
		$this->api = new Api();
		$this->api->setToken($token);
	}
protected function createApiInstance ( ) { $ configToken = $ this -> getConfig ( 'token' ) ; if ( $ configToken === null ) { throw new InvalidArgumentException ( 'API token has not been set in the config.' ) ; } $ token = new Token ( $ configToken ) ; $ this -> api = new Api ( ) ; $ this -> api -> setToken ( $ token ) ; }
Creates a new instance of the API library to use later.

@throws InvalidArgumentException
Creates a new instance of the API library to use later .