1.获取钉钉access_token:
https://oapi.dingtalk.com/gettoken?corpid=corpid&corpsecret=corpsecret
登录钉钉开放平台,获取corpid&corpsecret:
https://open-dev.dingtalk.com/?spm=a219a.7629140.0.0.1a3a4a97bzfNgh#/corpAuthInfo
2.获取钉部门id:
https://oapi.dingtalk.com/department/list?access_token=access_token
3.钉钉推送接口API:
https://oapi.dingtalk.com/robot/send?access_token=access_token
header:Content-Type:application/json
post参数:{"touser":"","toparty":"partyId","agentid":"1","msgtype":"text","text":{"content":"监控报警"}}