def _query_api(self, params, direct=False):
if not direct:<EOL><INDENT>return get(<EOL>self.URI_BASE + self.RESOURCE_NAME, params=params, headers=self._headers<EOL>)<EOL><DEDENT>id = params.pop("<STR_LIT:id>")<EOL>return get(<EOL>self.URI_BASE + self.RESOURCE_NAME + "<STR_LIT>".format(id),<EOL>params=params,<EOL>headers=self._headers,<EOL>)<EOL>
:param params: dict
:return: requests.models.Response