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)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Ac-Kevin/godingding
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|