vi test.sh
curl 那行是机器人webbook
#/bin/bash
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cd462b46-a552-422b-3123-2313111331231231' \
-H 'Content-Type: application/json' \
-d '
{
"msgtype": "text",
"text": {
"content": "test\n [爱心]请点击以下链接\nhttps://123.com/projects\n[嘿哈][嘿哈]",
"mentioned_list":["ALL"]
}
}'
ALL改@ALL 会@所有人
chmod +x test.sh
./test.sh
其它格式https://work.weixin.qq.com/api/doc/90000/90135/90236