shell腳本觸發企業微信羣機器人
1、創建企業微信
略
2、企業微信添加機器人
3、複製hook地址
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=08149ccf-3668-4fb9-bb06-asdfasdfasd
4、編輯shell腳本
#!/bin/bash
WEBHOOK_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=08149ccf-3668-4fb9-bb06-asdfasdfasd"
curl --location --request POST ${WEBHOOK_URL} \
--header 'Content-Type: application/json' \
-d '{"msgtype": "text","text": {"content": "Hi,hao添加到羣"}}'