Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Send nail group message through robot in Shell

Shulou Source: shulou.com Published: 2022-06-03 07:15:16 11月16日 Update

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:

Tags: Tasks that is effects effect diagrams fireworks machines robots things content scenes text simple and fast work messages Zhongtong Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia MySQL Shulou Information Apple