From c3c4c9e9aab750d7db6a0d7eeb5a4ab17c1f8f92 Mon Sep 17 00:00:00 2001 From: aTable Date: Thu, 5 May 2022 20:14:01 +1000 Subject: [PATCH] Update publish.md --- docs/publish.md | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/docs/publish.md b/docs/publish.md index d49bb8e..9fc0aac 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -163,25 +163,21 @@ a [title](#message-title), and [tag messages](#tags-emojis) 🥳 🎉. Here's an
Urgent notification with tags and title
-A detailed example: +You can also do multi-line messages. Here's an example using a click action, a user action, with an external image attachment and forwarded via email: === "Bash" ``` #!/bin/bash - curl \ - -X PUT \ - -H "X-Title: Nearby roadworks" \ - -H "X-Priority: low" \ - -H "X-Tags: loudspeaker" \ - -H "X-Click: https://dictionary.cambridge.org/dictionary/english/roadworks" \ - -H "X-Attach: https://ntfy.sh/docs/static/img/ntfy.png" \ - -H "X-Filename: logo" \ - -H "X-Delay: 15s" \ - -H "Actions: view, View Map, https://www.google.com/maps/place/48%C2%B051'33.2%22N+2%C2%B017'41.0%22E/@48.8592175%2C2.2925253%2C17z, clear=true;" \ - -d "Planned closures with high impact to commuters. -6am - 9:30am. -Until further notice." \ - ntfy.sh/commuter_alerts + curl \ + -H "Click: https://home.nest.com/" \ + -H "Attach: https://nest.com/view/yAxkasd.jpg" \ + -H "Actions: http, Open door, https://api.nest.com/open/yAxkasd, clear=true" \ + -H "Email: phil@example.com" \ + -d "There's someone at the door. 🐶 + +Please check if it's a good boy or a hooman. +Doggies have been known to ring the doorbell." \ + ntfy.sh/mydoorbell ``` === "ntfy CLI" @@ -220,7 +216,7 @@ Until further notice." \ ```
- ![priority notification](static/img/complete-notification.png){ width=500 } + ![priority notification](static/img/complete-notification.jpg){ width=500 }
Detailed notification with title, priority, tags, on click, attachment link with custom file name, delayed delivery, multiline message and an action button