def _query(self, params, direct=False):
params["<STR_LIT>"] = self._api_key<EOL>if "<STR_LIT>" not in params:<EOL><INDENT>params["<STR_LIT>"] = self._default_format<EOL><DEDENT>response = self._query_api(params, direct)<EOL>self._validate_response(response)<EOL>return Response.from_response_data(response)<EOL>
:param params: dict
:return: pybomb.clients.response