Update publish.md
parent
a7af16beb1
commit
72a2a8c82e
|
@ -163,20 +163,25 @@ a [title](#message-title), and [tag messages](#tags-emojis) 🥳 🎉. Here's an
|
||||||
<figcaption>Urgent notification with tags and title</figcaption>
|
<figcaption>Urgent notification with tags and title</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
A multiline message works too:
|
A detailed example:
|
||||||
|
|
||||||
=== "Bash"
|
=== "Bash"
|
||||||
```
|
```
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
curl \
|
curl \
|
||||||
-X PUT \
|
-X PUT \
|
||||||
-H "Title: Unauthorized access detected" \
|
-H "X-Title: Nearby roadworks" \
|
||||||
-H "Priority: urgent" \
|
-H "X-Priority: low" \
|
||||||
-H "Tags: warning,skull" \
|
-H "X-Tags: loudspeaker" \
|
||||||
-d "Remote access detected to phils-laptop detected.
|
-H "X-Click: https://dictionary.cambridge.org/dictionary/english/roadworks" \
|
||||||
Act right away.
|
-H "X-Attach: https://ntfy.sh/docs/static/img/ntfy.png" \
|
||||||
Or don't" \
|
-H "X-Filename: logo" \
|
||||||
ntfy.sh/phil_alerts
|
-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
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "ntfy CLI"
|
=== "ntfy CLI"
|
||||||
|
|
Loading…
Reference in New Issue