def query_multiple(self, object_type, page=<NUM_LIT:0>, url_params=None, query_params=None):<EOL>
<EOL>self.local_status["<STR_LIT>"] += <NUM_LIT:1><EOL>if object_type in ("<STR_LIT:user>", "<STR_LIT>"):<EOL><INDENT>query_path = "<STR_LIT>".format(object_type, self.org_id, page)<EOL>if url_params: query_path += "<STR_LIT:/>" + "<STR_LIT:/>".join([urlparse.quote(c) for c in url_params])<EOL>if query_params: query_path += "<STR_LIT:?>" + urlparse.urlencode(query_params)<EOL><DEDENT>elif object_type == "<STR_LIT>":<EOL><INDENT>query_path = "<STR_LIT>".format(self.org_id)<EOL>if url_params: query_path += "<STR_LIT:/>" + "<STR_LIT:/>".join([urlparse.quote(c) for c in url_params])<EOL>query_path += "<STR_LIT>".format(page+<NUM_LIT:1>)<EOL>if query_params: query_path += "<STR_LIT:&>" + urlparse.urlencode(query_params)<EOL><DEDENT>else:<EOL><INDENT>raise ArgumentError("<STR_LIT>".format(object_type))<EOL><DEDENT>try:<EOL><INDENT>result = self.make_call(query_path)<EOL>body = result.json()<EOL><DEDENT>except RequestError as re:<EOL><INDENT>if re.result.status_code == <NUM_LIT>:<EOL><INDENT>if self.logger: self.logger.debug("<STR_LIT>",<EOL>object_type, url_params, query_params)<EOL>return [], True<EOL><DEDENT>else:<EOL><INDENT>raise re<EOL><DEDENT><DEDENT>if object_type in ("<STR_LIT:user>", "<STR_LIT>"):<EOL><INDENT>if body.get("<STR_LIT:result>") == "<STR_LIT:success>":<EOL><INDENT>values = body.get(object_type + "<STR_LIT:s>", [])<EOL>last_page = body.get("<STR_LIT>", False)<EOL>if self.logger: self.logger.debug("<STR_LIT>",<EOL>object_type, url_params, query_params, page, len(values))<EOL>return values, last_page<EOL><DEDENT>else:<EOL><INDENT>raise ClientError("<STR_LIT>", result)<EOL><DEDENT><DEDENT>elif object_type == "<STR_LIT>":<EOL><INDENT>page_number = result.headers.get("<STR_LIT>", "<STR_LIT:1>")<EOL>page_count = result.headers.get("<STR_LIT>", "<STR_LIT:1>")<EOL>if self.logger: self.logger.debug("<STR_LIT>",<EOL>url_params, query_params, page, len(body))<EOL>return body, int(page_number) >= int(page_count)<EOL><DEDENT>else:<EOL><INDENT>raise ArgumentError("<STR_LIT>".format(object_type))<EOL><DEDENT>
Query for a page of objects.  Defaults to the (0-based) first page.
Sadly, the sort order is undetermined.
:param object_type: string constant query type: either "user" or "group")
:param page: numeric page (0-based) of results to get (up to 200 in a page)
:param url_params: optional list of strings to provide as additional URL components
:param query_params: optional dictionary of query options
:return: tuple (list of returned dictionaries (one for each query result), bool for whether this is last page)