asp网站程序下载,包装设计说明模板,seo查询工具网站,最便宜做网站的方法使用场景#xff1a;机器能访问互联网#xff0c;运行时间任务后通知使用
钉钉建立单人群
手机操作#xff0c;只能通过手机方式建立单人群 电脑端 2. 配置脚本
#!/bin/bash
set -e## 上图中 access_token字段
TOKEN
KEYWORDhello # 前文中设置的关键字
function call_…使用场景机器能访问互联网运行时间任务后通知使用
钉钉建立单人群
手机操作只能通过手机方式建立单人群 电脑端 2. 配置脚本
#!/bin/bash
set -e## 上图中 access_token字段
TOKEN
KEYWORDhello # 前文中设置的关键字
function call_webhook()
{
local msg$1
local body$(cat EOF
{at:{atMobiles:[1888888888]},text:{content:{{KEYWORD}} {{MSG}}},msgtype:text
}
EOF
)echo $body | sed -e s#{{MSG}}#$msg#g -e s#{{KEYWORD}}#$KEYWORD#g | curl --location --request POST https://oapi.dingtalk.com/robot/send?access_token$TOKEN \
--header Content-Type: application/json \
--data -
}call_webhook your xx environment job run over3. 参考
[1] https://unix.stackexchange.com/questions/217408/embed-cat-file-in-curl-data [2] https://open.dingtalk.com/document/robots/custom-robot-access