# QQ450433231
Enterprise micro-channel group chat inside the robot increases, the robot will send the information provided URL.
According to the corresponding key writing shell written here convenient function call
wx_web(){ #WEB监控机器人 政务云二狗 cat > sendweb.sh<< EOF curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d51ce794-4ec7-44b8-aef2-4e28b4703b' \ -H 'Content-Type: application/json' \ -d ' { "msgtype": "text", "text": { "content": "$info", "mentioned_mobile_list":["$people"] } }' EOF sh sendweb.sh && rm -rf sendweb.sh }
# / bin / bash # script to send test . /root/weixin.sh # call the function just written info = "" # send people = "" # @ in the group who can fill the other contact number is empty wx_web
Ip monitor script combine to achieve micro-channel transmit alarm information.