1
0
Files
nad-plain-notifier-golang-sdk/main.go
WriterPass 254f1c413c add main.go for demo
add README.md for description
2025-01-20 19:52:26 +08:00

26 lines
382 B
Go

package main
import (
"fmt"
"nad-plain-notifier-golang-sdk/plain"
)
func main() {
n := plain.Notify{
Notify: "test",
Title: "test",
Device: "pc",
}
notifier := plain.NadNotifier{
Address: "https://host:port/path",
SkipSSLVerify: true,
AccessToken: "token",
}
err := notifier.Notify(&n)
if err != nil {
_ = fmt.Errorf("notify error: %v", err)
}
}