private function curl()
    {
        if (!($this->curl instanceof cURL)) {
            $this->curl = new cURL();
        }

        if ($this->hasAuth()) {
            $this->curl->setCredentials($this->user, $this->pass);
        }

        if ($this->cookie && is_writeable(dirname($this->cookie))) {
            $this->curl->setCookieStorage($this->cookie);
        }

        return $this->curl->setTimeout($this->timeout);
    }
private function curl()
    {
        if (!($this->curl instanceof cURL)) {
            $this->curl = new cURL();
        }

        if ($this->hasAuth()) {
            $this->curl->setCredentials($this->user, $this->pass);
        }

        if ($this->cookie && is_writeable(dirname($this->cookie))) {
            $this->curl->setCookieStorage($this->cookie);
        }

        return $this->curl->setTimeout($this->timeout);
    }
private function curl ( ) { if ( ! ( $ this -> curl instanceof cURL ) ) { $ this -> curl = new cURL ( ) ; } if ( $ this -> hasAuth ( ) ) { $ this -> curl -> setCredentials ( $ this -> user , $ this -> pass ) ; } if ( $ this -> cookie && is_writeable ( dirname ( $ this -> cookie ) ) ) { $ this -> curl -> setCookieStorage ( $ this -> cookie ) ; } return $ this -> curl -> setTimeout ( $ this -> timeout ) ; }
Get browser for making API requests
- create an instance
- assign auth data if we have it.

@param void

@return cURL
Get browser for making API requests - create an instance - assign auth data if we have it .