itd/api/notify.go

17 lines
219 B
Go
Raw Permalink Normal View History

2021-10-24 01:41:03 +00:00
package api
2022-05-01 22:22:28 +00:00
import "context"
func (c *Client) Notify(ctx context.Context, title, body string) error {
return c.client.Call(
2022-05-01 22:22:28 +00:00
ctx,
"ITD",
2022-04-23 00:12:30 +00:00
"Notify",
NotifyData{
2021-10-24 01:41:03 +00:00
Title: title,
Body: body,
2021-10-24 01:41:03 +00:00
},
2022-04-23 00:12:30 +00:00
nil,
)
}