OapiFileUploadChunkRequest.py 456 B

1234567891011121314151617181920
  1. '''
  2. Created by auto_sdk on 2018.07.25
  3. '''
  4. from dingtalk.api.base import RestApi
  5. class OapiFileUploadChunkRequest(RestApi):
  6. def __init__(self,url=None):
  7. RestApi.__init__(self,url)
  8. self.agent_id = None
  9. self.chunk_sequence = None
  10. self.file = None
  11. self.upload_id = None
  12. def getHttpMethod(self):
  13. return 'POST'
  14. def getapiname(self):
  15. return 'dingtalk.oapi.file.upload.chunk'
  16. def getMultipartParas(self):
  17. return ['file']