1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-24 08:22:18 +02:00
notify/service/bark
2022-04-23 15:53:18 +08:00
..
bark.go feat: add bark service 2022-04-23 15:53:18 +08:00
README.md feat: add bark service 2022-04-23 15:53:18 +08:00

Bark

Bark is an application allows you to push customed notifications to your iPhone

Usage

// Create a bark service. `device key` is generated when you install the application
barkService := bark.New("your bark device key", bark.DefaultServer)

// Tell our notifier to use the bark service. You can repeat the above process
// for as many services as you like and just tell the notifier to use them.
notify.UseServices(barkService)

// Send a test message.
_ = notify.Send(
	context.Background(),
	"Subject/Title",
	"The actual message - Hello, you awesome gophers! :)",
)