private function applyCurlOptions($authMethod)
    {
        $this->curl->reset();

        $this->curl->setUserAgent('Shopello-PHP API Client/1.0');

        $this->curl->setOpt(CURLOPT_ENCODING, 'gzip');
        $this->curl->setOpt(CURLOPT_HEADER, false);
        $this->curl->setOpt(CURLOPT_NOBODY, false);
        $this->curl->setOpt(CURLOPT_CONNECTTIMEOUT, 3);
        $this->curl->setOpt(CURLOPT_TIMEOUT, 300);

        $this->setAuthMethod($authMethod);

        foreach ($this->curlOptions as $key => $value) {
            $this->curl->setOpt($key, $value);
        }
    }
private function applyCurlOptions($authMethod)
    {
        $this->curl->reset();

        $this->curl->setUserAgent('Shopello-PHP API Client/1.0');

        $this->curl->setOpt(CURLOPT_ENCODING, 'gzip');
        $this->curl->setOpt(CURLOPT_HEADER, false);
        $this->curl->setOpt(CURLOPT_NOBODY, false);
        $this->curl->setOpt(CURLOPT_CONNECTTIMEOUT, 3);
        $this->curl->setOpt(CURLOPT_TIMEOUT, 300);

        $this->setAuthMethod($authMethod);

        foreach ($this->curlOptions as $key => $value) {
            $this->curl->setOpt($key, $value);
        }
    }
private function applyCurlOptions ( $ authMethod ) { $ this -> curl -> reset ( ) ; $ this -> curl -> setUserAgent ( 'Shopello-PHP API Client/1.0' ) ; $ this -> curl -> setOpt ( CURLOPT_ENCODING , 'gzip' ) ; $ this -> curl -> setOpt ( CURLOPT_HEADER , false ) ; $ this -> curl -> setOpt ( CURLOPT_NOBODY , false ) ; $ this -> curl -> setOpt ( CURLOPT_CONNECTTIMEOUT , 3 ) ; $ this -> curl -> setOpt ( CURLOPT_TIMEOUT , 300 ) ; $ this -> setAuthMethod ( $ authMethod ) ; foreach ( $ this -> curlOptions as $ key => $ value ) { $ this -> curl -> setOpt ( $ key , $ value ) ; } }
Apply cURL options
Apply cURL options