/** * Initialize the config and refresh the token * * @param array $config */ public function __construct($config) { parent::__construct(); // Initialize the config to set all properties properly $this->init_config($config); // Let's get an access token if we've got a refresh token $this->refresh_tokens(); }
/** * Initialize the config and refresh the token * * @param array $config * @param string $option_prefix * @param string $api_url */ public function __construct($config, $option_prefix, $api_url = '') { parent::__construct(); $this->option_refresh_token = $option_prefix . '-refresh_token'; $this->option_access_token = $option_prefix . '-access_token'; $this->api_url = $api_url; // Initialize the config to set all properties properly. $this->init_config($config); // Let's get an access token if we've got a refresh token. $this->refresh_tokens(); }
/** * Declare if objects should be returned by the api service classes. * * @param boolean $useBatch True if the experimental batch support should * be enabled. Defaults to False. * @experimental */ public function setUseBatch($useBatch) { self::$useBatch = $useBatch; }