public function send(Request $request)
    {
        $curl = $this->prepareRequest($request);
        
        $data = curl_exec($curl);
        if (false === $data) {
            $errorMsg = curl_error($curl);
            $errorNo  = curl_errno($curl);

            throw new \RuntimeException($errorMsg, $errorNo);
        }
        
        $data = $this->filterRawResponse($data);
        
        return $this->prepareResponse($data, curl_getinfo($curl, CURLINFO_HTTP_CODE));
    }
public function send(Request $request)
    {
        $curl = $this->prepareRequest($request);
        
        $data = curl_exec($curl);
        if (false === $data) {
            $errorMsg = curl_error($curl);
            $errorNo  = curl_errno($curl);

            throw new \RuntimeException($errorMsg, $errorNo);
        }
        
        $data = $this->filterRawResponse($data);
        
        return $this->prepareResponse($data, curl_getinfo($curl, CURLINFO_HTTP_CODE));
    }
public function send ( Request $ request ) { $ curl = $ this -> prepareRequest ( $ request ) ; $ data = curl_exec ( $ curl ) ; if ( false === $ data ) { $ errorMsg = curl_error ( $ curl ) ; $ errorNo = curl_errno ( $ curl ) ; throw new \ RuntimeException ( $ errorMsg , $ errorNo ) ; } $ data = $ this -> filterRawResponse ( $ data ) ; return $ this -> prepareResponse ( $ data , curl_getinfo ( $ curl , CURLINFO_HTTP_CODE ) ) ; }
Send the given HTTP request by using this adapter

@param \apiTalk\Request $request The request object

@return \apiTalk\Response The response object

@throws \RuntimeException Thrown when curl_exec return false
Send the given HTTP request by using this adapter