protected function get(string $uri, array $query = [])
    {
        $response = $this->client->request('GET', $uri, $query ? ['query' => $query] : []);

        return json_decode((string) $response->getBody(), true);
    }