OapiChatSendRequest.py 525 B

123456789101112131415161718192021222324
  1. '''
  2. Created by auto_sdk on 2019.12.16
  3. '''
  4. from dingtalk.api.base import RestApi
  5. class OapiChatSendRequest(RestApi):
  6. def __init__(self,url=None):
  7. RestApi.__init__(self,url)
  8. self.action_card = None
  9. self.chatid = None
  10. self.file = None
  11. self.image = None
  12. self.link = None
  13. self.markdown = None
  14. self.msg = None
  15. self.msgtype = None
  16. self.oa = None
  17. self.text = None
  18. self.voice = None
  19. def getHttpMethod(self):
  20. return 'POST'
  21. def getapiname(self):
  22. return 'dingtalk.oapi.chat.send'