def check_state(self, request_id): api = self.api2 + request_id response = self.http_request.get(api) content = validate_http(response) return content
def check_submitted(self, request_id): api = self.api2 + request_id + '?state=submitted' response = self.http_request.get(api) content = validate_http(response) return content
def cancel_request(self, request_id): api = self.api2 + request_id + '/cancel' response = self.http_request.post(api) content = validate_http(response) return content
def check_completed(self, request_id): api = self.api2 + request_id + "?state=complete" response = self.http_request.get(api) content = validate_http(response) return content