dingtalk_test.py 491 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. '''
  3. Created on 2018-9-17
  4. @author: xiaoxuan.lp
  5. '''
  6. import dingtalk.api
  7. request = dingtalk.api.OapiGettokenRequest("https://oapi.dingtalk.com/gettoken")
  8. request.corpid="*******"
  9. request.corpsecret="*******"
  10. f = request.getResponse()
  11. print(f)
  12. request = dingtalk.api.OapiXiaoxuanPreTest1Request("https://oapi.dingtalk.com/topapi/xiaoxuan/pre/test1")
  13. request.normalData="1"
  14. request.systemData="2"
  15. f = request.getResponse("******")
  16. print(f)