Files
notifyha/example/main.go
T
2026-09-21 13:17:57 +10:00

21 lines
298 B
Go

package main
import (
"log"
"gitea.rantorium.com/Troy/notifyha"
)
func main() {
client := notifyha.New("https://homeassistant.example.com/api/webhook/central_notifications")
err := client.Info(
"Test Message",
"Hello from Go",
"example-app",
)
if err != nil {
log.Fatal(err)
}
}