mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-23 18:23:27 +01:00
9155c49571
This reverts commit 0821b8a25f
.
12 lines
293 B
Python
Executable file
12 lines
293 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import requests
|
|
|
|
resp = requests.get("https://ntfy.sh/mytopic/trigger",
|
|
data="Backup successful 😀".encode(encoding='utf-8'),
|
|
headers={
|
|
"Priority": "high",
|
|
"Tags": "warning,skull",
|
|
"Title": "Hello there"
|
|
})
|
|
resp.raise_for_status()
|