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