shell发布企业微信webhook机器人信息

oss_file_url="https://aaaaaaaaaaa.oss-cn-shenzhen.aliyuncs.com/aaaaaaaaaa.zip"

DATA=`cat<<EOF
{
  "msgtype": "text",
  "text": {
    "content": "${oss_file_url}"
  }
}
EOF
`

curl https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=f66b4752-d956-41b4-b69d-8584b0937eb5  \
-H 'Content-Type: application/' \
--data "${DATA}"

posted @ 2024-03-07 10:40  chenzechao  阅读(28)  评论(0编辑  收藏  举报