21 lines
298 B
Go
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)
|
|
}
|
|
}
|