export DINGTALK_TOKEN="change me"
export DINGTALK_SECRET="change me"Test sending messages:
go test ./... -vSend messages with this SDK in Go:
go get -u github.com/Lonor/dingtalkbot-sdkpackage 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