mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #55] Webhooks: GET requests for simple pings without messages #48
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kzshantonu on GitHub (Dec 14, 2021).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/55
I propose allowing GET requests with no parameters to send simple ping notification without message. Quicker to type in terminal when someone wants a notification but not necessarily a message
@binwiederhier commented on GitHub (Dec 14, 2021):
Thank you for creating a ticket.
What you are describing is a webhook, which has come up before. I do think that it's relatively easy to implement, and it's likely worth it.
I'd likely suggest to add optional parameters though, so that you could, if you wanted to, add message/priority/etc in GET parameters too.
@kzshantonu As for the "empty message", I have some weird "is message empty" checks in the codebase that I'd rather not touch. Is that a hard requirement for you? Or is it just that you don't care about the message?
I picture this:
Which would be equivalent to this:
I do acknowledge that it's a little weird to have the word "triggered", but it would make it significantly easier to impement to have something non-empty.
Optionally, we could then add parameters:
@kzshantonu commented on GitHub (Dec 14, 2021):
That does work. Can be any standard 'default' message. The goal is to type it out quickly in terminal
@binwiederhier commented on GitHub (Dec 16, 2021):
@kzshantonu Boom, it's live: https://ntfy.sh/docs/publish/#webhooks-send-via-get