def METHOD_NAME(self, path, **queries):
    code, json_result = self._submit_request(
        self._base_url + path,
        params=self._format_queries(queries),
    )
    # concat any additional pages of data
    while code == 200 and 'next' in json_result.get('paging', {}):
        previous_data = json_result.get('data', [])
        code, json_result = self._submit_request(
            json_result['paging']['next'])
        json_result['data'] = previous_data + json_result.get('data', [])
    if code == 200:
        return json_result
    if code == 404:
        raise CliException(
            '{}: There is no resource with the identifier "{}"'.format(
                self._base_url, path.split('/')[-1]))
    raise CliException(
        "{}: {} {}".format(self._base_url, code, json_result))