暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

钉钉的机器人的发消息的API接口

一直爱流浪的猫 2018-04-27
437

#!/bin/bash

sendmessage() {

#添加自己的钉钉机器人的access_token

access_token=curl \

"https://oapi.dingtalk.com/robot/send?\

access_token=$access_token" \

   -H 'Content-Type: application/json' \

   -d '{"msgtype": "text", "text": {

        "content": "'$1'"

     }}'

}

sendmessage  hello


文章转载自一直爱流浪的猫,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论