src/Connection.php
public function execGET($url, array $params = [])
    {
        $url = $this->baseUrl . $url;

        // Build the query from the parameters
        if ($params !== []) {
            $url .= '?' . http_build_query($params);
        }

        // Set request options
        $this->addOptions([
            CURLOPT_URL => $url,
            CURLOPT_HTTPGET => true,
        ]);

        return $this->exec();
    }
public function execGET($url, array $params = [])
    {
        $url = $this->baseUrl . $url;

        // Build the query from the parameters
        if ($params !== []) {
            $url .= '?' . http_build_query($params);
        }

        // Set request options
        $this->addOptions([
            CURLOPT_URL => $url,
            CURLOPT_HTTPGET => true,
        ]);

        return $this->exec();
    }
public function execGET ( $ url , array $ params = [ ] ) { $ url = $ this -> baseUrl . $ url ; // Build the query from the parameters if ( $ params !== [ ] ) { $ url .= '?' . http_build_query ( $ params ) ; } // Set request options $ this -> addOptions ( [ CURLOPT_URL => $ url , CURLOPT_HTTPGET => true , ] ) ; return $ this -> exec ( ) ; }
Execute a GET request to a given URL, with optional parameters.

@param string   $url
@param string[] $params Array of query parameter $key=>$value pairs.
@return ConnectionReturn The server's response
Execute a GET request to a given URL with optional parameters .