Send nail group message through robot in Shell
Scene: in normal work, we often need to perform some scheduled tasks, and when the scheduled task fails, we need to alarm to the nailing group. Using the nailing robot can help us do this easily and quickly.
Easy to use
Curl 'https://oapi.dingtalk.com/robot/send?access_token=9e2549f6a0bb28767bdexxxxxxxxxxxxxxxxxx81975c981005abbd'\-H' Content-Type: application/json'\-d'{"msgtype": "text", "text": {"content": "I am who I am, a different kind of fireworks"}'
Effect picture:
Send the text content and @ the specified person
Curl 'https://oapi.dingtalk.com/robot/send?access_token=9e2549f6a0xxxxxxxxxxxxxxxxxx447981975c981005abbd'\-H' Content-Type: application/json'\-d'{"msgtype": "text", "text": {"content": "I am who I am, different fireworks"}, "at": {"atMobiles": ["176xxxx1234"], "isAtAll": false}}'
Effect picture: