protected function query($uri, $data = [])
    {
        $this->setActionUri($uri);

        try {
            $response = $this->client->get($this->uri, ['query' => $data]);
        } catch(ClientException $e) {
            $response = $e->getResponse();
        } catch(ServerException $e) {
            $response = $e->getResponse();
        }

        return $this->responseToJson($response);
    }