import (
"fmt"
bark "github.com/pushyzheng/gobark"
)
func main() {
// 1. create bark client
client := bark.BarkClient{Domain: bark.DefaultDomain}
// 2. build options
options := bark.NewPushOptions("Hello", "To be or not to be")
options.SetReceiver("your key")
options.SetLevel(bark.Passive)
// 3. execute push
failed, err := client.Push(options)
if err != nil {
panic(err)
}
fmt.Println("failed:", failed)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
The client of bark
License
pushyzheng/gobark
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The client of bark
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published