export DINGTALK_TOKEN="change me"
export DINGTALK_SECRET="change me"
Test sending messages:
go test ./... -v
Send messages with this SDK in Go:
go get -u github.com/Lonor/dingtalkbot-sdk
package main
import (
sdk "github.com/Lonor/dingtalkbot-sdk"
"os"
)
func main() {
bot := sdk.NewDingBot(os.Getenv("DINGTALK_TOKEN"), os.Getenv("DINGTALK_SECRET"))
_ = bot.SendSimpleText("hello world")
}
MIT