OapiMessageCorpconversationAsyncsendV2Request.py 469 B

123456789101112131415161718
  1. '''
  2. Created by auto_sdk on 2019.12.16
  3. '''
  4. from dingtalk.api.base import RestApi
  5. class OapiMessageCorpconversationAsyncsendV2Request(RestApi):
  6. def __init__(self,url=None):
  7. RestApi.__init__(self,url)
  8. self.agent_id = None
  9. self.dept_id_list = None
  10. self.msg = None
  11. self.to_all_user = None
  12. self.userid_list = None
  13. def getHttpMethod(self):
  14. return 'POST'
  15. def getapiname(self):
  16. return 'dingtalk.oapi.message.corpconversation.asyncsend_v2'