public function get($action, array $query = [])
    {
        $query['action'] = $action;
        $query['username'] = $this->username;
        $query['password'] = $this->password;

        $endpoint = 'json';

        if (!empty($query)) {
            $endpoint .= '?' . http_build_query($query);
        }

        $request = $this->createRequest('GET', $endpoint);
        return $this->sendRequest($request);
    }