企业微信自建应用后通过api给用户发消息
企业ID
https://work.weixin.qq.com/wework_admin/frame#/profile

corpsecret
创建企业用户后获得

获取access_token
请求方式:GET(HTTPS)
请求URL:https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRET

开启IP白名单

获取用户账号

通过API给用户发消息
请求方式:POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN

{"touser" : "XuTongBao","msgtype" : "text","agentid" : 1000004,"text" : {"content" : "你好"},"safe":0
}
效果

官方教程
https://developer.work.weixin.qq.com/document/path/90487
