curl位址為釘釘群webhook
robot.sh
#!/bin/bash
text=$1
curl 'https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxx' -H 'Content-Type: application/json' -d '
{"msgtype": "text",
"text": {
"content": "'"$text"'"
},
"at":{
"atMobiles":[
"1xxxxxxxx"
],
"isAtAll":false