1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-23 03:43:47 +01:00

Update publish.md

This commit is contained in:
aTable 2022-05-05 20:57:52 +10:00 committed by GitHub
parent fd2c6ef590
commit 8154705f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,8 +165,9 @@ a [title](#message-title), and [tag messages](#tags-emojis) 🥳 🎉. Here's an
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: 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" === "Command line (curl)"
``` sh ``` sh
#!/bin/bash
curl \ curl \
-H "Title: New visitor" \ -H "Title: New visitor" \
-H "Click: https://home.nest.com/" \ -H "Click: https://home.nest.com/" \
@ -284,10 +285,13 @@ Doggies have been known to ring the doorbell.",
"Content-Type: text/plain\r\n" . "Content-Type: text/plain\r\n" .
"Title: New visitor\r\n" . "Title: New visitor\r\n" .
"Click: https://home.nest.com/\r\n" . "Click: https://home.nest.com/\r\n" .
"Attach: https://nest.com/view/yAxkasd.jpg" . "Attach: https://nest.com/view/yAxkasd.jpg\r\n" .
"Actions": "http, Open door, https://api.nest.com/open/yAxkasd, clear=true" . "Actions": "http, Open door, https://api.nest.com/open/yAxkasd, clear=true\r\n" .
"Email": "phil@example.com" , "Email": "phil@example.com\r\n" ,
'content' => 'Remote access to phils-laptop detected. Act right away.' 'content' => '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.'
] ]
])); ]));
``` ```