def api_call(url, id): response = APICall.get(url, uri=id) return Lookup._unwrap(response, searcher.model.res_name)
def api_call(url, query): response = APICall.get(url, q=query) return Search._unwrap(response, self.model.wrapper)