Skip to content

Ac-Kevin/godingding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go DD

package main

import (
	"github.com/Ac-Kevin/godingding/webhookrobot"
)

func main() {
	var SendUrl = `https://oapi.dingtalk.com/robot/send?access_token=xxxxxx`
	var SecretKey = `you'r secret key`
	robot := webhookrobot.NewWebHookRot(webhookrobot.WebHookRotOption{SendUrl: SendUrl, SecretKey: SecretKey})
	var msg webhookrobot.Msg
	msg.SetText(webhookrobot.MsgText{Content: "Hi~"}, webhookrobot.MsgAt{})
	robot.SendMsg(msg)
}

About

钉钉 机器人消息推送

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages