mvp
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user