示例#1
0
 def check_state(self, request_id):
     api = self.api2 + request_id
     response = self.http_request.get(api)
     content = validate_http(response)
     return content
示例#2
0
 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
示例#3
0
 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