protected function makeCall($type, $url, $params, $options, $headers) {
        // Throw exception when adapter is not set
        if (!isset($this->adapter)) {
            throw new NoAdapterException('No adapter set');
        }

        // Remove potential leading slashes
        if (substr($url, 0, 1) === '/') {
            $url = substr($url, 1);
        }

        // Call adapter to make request
        $result = $this->adapter->doRequest($type, $this->baseURL . $url, $params, $options, $headers);

        // Run the the response handler
        return $this->runResponseHandler($result, $type, $url, $params);
    }
protected function makeCall($type, $url, $params, $options, $headers) {
        // Throw exception when adapter is not set
        if (!isset($this->adapter)) {
            throw new NoAdapterException('No adapter set');
        }

        // Remove potential leading slashes
        if (substr($url, 0, 1) === '/') {
            $url = substr($url, 1);
        }

        // Call adapter to make request
        $result = $this->adapter->doRequest($type, $this->baseURL . $url, $params, $options, $headers);

        // Run the the response handler
        return $this->runResponseHandler($result, $type, $url, $params);
    }
protected function makeCall ( $ type , $ url , $ params , $ options , $ headers ) { // Throw exception when adapter is not set if ( ! isset ( $ this -> adapter ) ) { throw new NoAdapterException ( 'No adapter set' ) ; } // Remove potential leading slashes if ( substr ( $ url , 0 , 1 ) === '/' ) { $ url = substr ( $ url , 1 ) ; } // Call adapter to make request $ result = $ this -> adapter -> doRequest ( $ type , $ this -> baseURL . $ url , $ params , $ options , $ headers ) ; // Run the the response handler return $ this -> runResponseHandler ( $ result , $ type , $ url , $ params ) ; }
Calls the adapter which will perform the request

@param   string              $type
@param   string              $url
@param   array               $params
@param   array               $options
@param   array               $headers
@return  Result
@throws  NoAdapterException
@throws  \Exception
Calls the adapter which will perform the request