public function get()
    {
        $url = $this->buildUrl($this->url);

        try {
            $response = $this->makeRequest($url);

            return $this->prepareResponse($response);
        }
        // The client needs to know only one exception, no
        // matter what exception is thrown by Guzzle
         catch (TransferException $e) {
            throw new ConnectionException($e->getMessage());
        }
    }
public function get()
    {
        $url = $this->buildUrl($this->url);

        try {
            $response = $this->makeRequest($url);

            return $this->prepareResponse($response);
        }
        // The client needs to know only one exception, no
        // matter what exception is thrown by Guzzle
         catch (TransferException $e) {
            throw new ConnectionException($e->getMessage());
        }
    }
public function get ( ) { $ url = $ this -> buildUrl ( $ this -> url ) ; try { $ response = $ this -> makeRequest ( $ url ) ; return $ this -> prepareResponse ( $ response ) ; } // The client needs to know only one exception, no // matter what exception is thrown by Guzzle catch ( TransferException $ e ) { throw new ConnectionException ( $ e -> getMessage ( ) ) ; } }
Makes the request and returns the response
with the rates.

@throws ConnectionException if the request is incorrect or times out
@throws ResponseException if the response is malformed
@return array
Makes the request and returns the response with the rates .