9月142021
钉钉群发消息webhook机器 人
Global $token = "9f7f...我是token...0090d9"
_DingDing_Send($token,"A22Q我是发送的消息测试ad234")
Func _DingDing_Send($token, $Str)
Local $xmlhttp = ObjCreate("MSXML2.XMLHTTP.3.0")
$xmlhttp.open("POST", "https://oapi.dingtalk.com/robot/send?access_token=" & $token, False)
$xmlhttp.setRequestHeader('Content-Type', "application/json;charset=utf-8")
$xmlhttp.send('{"msgtype":"text","text":{"content":"业务消息:' & $Str & '"}}')
Global $bodytext = BinaryToString($xmlhttp.responseBody, 1)
ConsoleWrite($bodytext)
EndFunc ;==>_DingDing_Send
扫描二维码,在手机上阅读
发表评论
木有头像就木JJ啦!还木有头像吗?点这里申请属于你的个性Gravatar头像吧!