1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-26 13:19:15 +01:00

Update publish.md

This commit is contained in:
aTable 2022-05-04 23:24:38 +10:00 committed by GitHub
parent a7af16beb1
commit 72a2a8c82e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,20 +163,25 @@ a [title](#message-title), and [tag messages](#tags-emojis) 🥳 🎉. Here's an
<figcaption>Urgent notification with tags and title</figcaption>
</figure>
A multiline message works too:
A detailed example:
=== "Bash"
```
#!/bin/bash
curl \
curl \
-X PUT \
-H "Title: Unauthorized access detected" \
-H "Priority: urgent" \
-H "Tags: warning,skull" \
-d "Remote access detected to phils-laptop detected.
Act right away.
Or don't" \
ntfy.sh/phil_alerts
-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
```
=== "ntfy CLI"