mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Python examples; that's all; closes #50
This commit is contained in:
parent
92f48fbbea
commit
4346f55b29
3 changed files with 30 additions and 0 deletions
|
@ -52,6 +52,12 @@ is in the request body. Here's an example showing how to publish a simple messag
|
|||
strings.NewReader("Backup successful 😀"))
|
||||
```
|
||||
|
||||
=== "Python"
|
||||
``` python
|
||||
requests.post("https://ntfy.sh/mytopic",
|
||||
data="Backup successful 😀".encode(encoding='utf-8'))
|
||||
```
|
||||
|
||||
=== "PHP"
|
||||
``` php-inline
|
||||
file_get_contents('https://ntfy.sh/mytopic', false, stream_context_create([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue