src/Request.php
private function buildResponse() {

        $curlOptions = $this->getBasicCurlOptions();
        $this->addRequestAuth($curlOptions);
        $this->addRequestHeaders($curlOptions);
        $this->addRequestMethod($curlOptions);

        // push options into the resource
        $curlResource = $this->getCurlResource();
        if (!curl_setopt_array($curlResource, $curlOptions)) {
            throw new RequestException('Invalid cURL options');
        }

        // create response
        $response = new Response($curlResource);
        return $response;
    }
private function buildResponse() {

        $curlOptions = $this->getBasicCurlOptions();
        $this->addRequestAuth($curlOptions);
        $this->addRequestHeaders($curlOptions);
        $this->addRequestMethod($curlOptions);

        // push options into the resource
        $curlResource = $this->getCurlResource();
        if (!curl_setopt_array($curlResource, $curlOptions)) {
            throw new RequestException('Invalid cURL options');
        }

        // create response
        $response = new Response($curlResource);
        return $response;
    }
private function buildResponse ( ) { $ curlOptions = $ this -> getBasicCurlOptions ( ) ; $ this -> addRequestAuth ( $ curlOptions ) ; $ this -> addRequestHeaders ( $ curlOptions ) ; $ this -> addRequestMethod ( $ curlOptions ) ; // push options into the resource $ curlResource = $ this -> getCurlResource ( ) ; if ( ! curl_setopt_array ( $ curlResource , $ curlOptions ) ) { throw new RequestException ( 'Invalid cURL options' ) ; } // create response $ response = new Response ( $ curlResource ) ; return $ response ; }
Build the response object.

Builds the response object based on current request configuration.

@return Response
@throws RequestException
Build the response object .