You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
414 B
26 lines
414 B
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitea.v39.writerpass.top/Public/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)
|
|
}
|
|
}
|