node-red推送消息到企业微信
创建应用



获取企业微信access_token
需要参数corpid、corpsecret
文档地址:https://work.weixin.qq.com/api/doc/90000/90003/90487
获取corpid

获取corpsecret



node-red程序

参数设置


URL:https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRET


设置完成后部署一下


发送应用消息
文档:https://work.weixin.qq.com/api/doc/90000/90135/90236
node-red程序


URL:https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN






json内容:{“touser”:"@all",“msgtype”:“text”,“agentid”:1,“text”:{“content”:“这里是消息内容!”}}
agentid获取


绑定微信
绑定普通微信,不用下载安装企业微信APP在普通微信接收消息



4738

被折叠的 条评论
为什么被折叠?



