src/Api/Client.php
public function get($path, array $query = array())
    {
        if (!empty($query)) {
            $query = http_build_query($query);
            $path .= '?' . $query;
        }

        return $this->request('GET', $path);
    }
public function get($path, array $query = array())
    {
        if (!empty($query)) {
            $query = http_build_query($query);
            $path .= '?' . $query;
        }

        return $this->request('GET', $path);
    }
public function get ( $ path , array $ query = array ( ) ) { if ( ! empty ( $ query ) ) { $ query = http_build_query ( $ query ) ; $ path .= '?' . $ query ; } return $ this -> request ( 'GET' , $ path ) ; }
Performs a GET request.

@param string $path The path of the request.
@param array $query The filters of the request.

@return array The data of the response.

@throws ApiCommunicationException if an I/O error occurs.
@throws DeserializeException if response cannot be deserialized.
@throws ApiServerException if server was not able to respond.
@throws ApiClientException if request is invalid.
Performs a GET request .