OapiMediaUploadRequest.py 390 B

123456789101112131415161718
  1. '''
  2. Created by auto_sdk on 2018.07.25
  3. '''
  4. from dingtalk.api.base import RestApi
  5. class OapiMediaUploadRequest(RestApi):
  6. def __init__(self,url=None):
  7. RestApi.__init__(self,url)
  8. self.media = None
  9. self.type = None
  10. def getHttpMethod(self):
  11. return 'POST'
  12. def getapiname(self):
  13. return 'dingtalk.oapi.media.upload'
  14. def getMultipartParas(self):
  15. return ['media']