mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-16 01:23:18 +02:00
More docs
This commit is contained in:
parent
8900df27c9
commit
712c292183
8 changed files with 275 additions and 89 deletions
client
|
@ -56,6 +56,12 @@ func WithClick(url string) PublishOption {
|
|||
return WithHeader("X-Click", url)
|
||||
}
|
||||
|
||||
// WithActions adds custom user actions to the notification. The value can be either a JSON array or the
|
||||
// simple format definition. See https://ntfy.sh/docs/publish/#action-buttons for details.
|
||||
func WithActions(value string) PublishOption {
|
||||
return WithHeader("X-Actions", value)
|
||||
}
|
||||
|
||||
// WithAttach sets a URL that will be used by the client to download an attachment
|
||||
func WithAttach(attach string) PublishOption {
|
||||
return WithHeader("X-Attach", attach)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue