企业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

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