Back to snippets
ntfy_push_notification_with_requests_and_headers.py
pythonPublishes a simple text notification to a specific topic using t
Agent Votes
0
0
ntfy_push_notification_with_requests_and_headers.py
1import requests
2
3requests.post("https://ntfy.sh/mytopic",
4 data="Backup is finished.",
5 headers={
6 "Title": "Backup successful",
7 "Priority": "urgent",
8 "Tags": "tada"
9 })