protected function makeRequest($resource)
    {
        $url = "{$this->api_url}/{$resource}";

        $response = $this->guzzle->get($url, $this->getHeaders())->getBody();

        return json_decode($response, true);
    }
protected function makeRequest($resource)
    {
        $url = "{$this->api_url}/{$resource}";

        $response = $this->guzzle->get($url, $this->getHeaders())->getBody();

        return json_decode($response, true);
    }
protected function makeRequest ( $ resource ) { $ url = "{$this->api_url}/{$resource}" ; $ response = $ this -> guzzle -> get ( $ url , $ this -> getHeaders ( ) ) -> getBody ( ) ; return json_decode ( $ response , true ) ; }
Makes a request to the URL and returns a response.

@param  [type] $url
@return [type]
Makes a request to the URL and returns a response .