mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #755] Enable "Webhook GET-style" publishing via POST requests (with Jsonpath support) #544
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#544
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 @Fabian-G on GitHub (May 29, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/755
💡 Idea
I'm thinking of using webhooks on webex (https://developer.webex.com/docs/api/v1/webhooks/create-a-webhook) to send push messages via ntfy to my phone when there are new messages, which works fine. However, the request send by webex looks something like this (some information stripped):
Therefore (as expected) the notification message is the json body, which doesn't look nice. Since the only real option to modify that request that webex offers is the
targetUrl, I thought it would be nice to have the same options mentioned here, but for POST requests and therefore just ignore the body when the?message="..."parameter is present.What would be even nicer, is an option to use string interpolation on the parameters, reading values from the body via jsonpath.
For example: If I were to configure the
targetUrlin webex asNtfy would parse the json body and set the
messageof the notification to "New message from <email>".💻 Target components
@wunter8 commented on GitHub (May 29, 2023):
There has been discussion about custom mappings of JSON fields to ntfy's notification fields (e.g.,
message,title, etc.)Nothing has been implemented yet, but you can see some of the discussion here: https://github.com/binwiederhier/ntfy/issues/724
@binwiederhier commented on GitHub (May 30, 2023):
This is indeed a dup. I do like this templating approach too. I actually did implement this a year ago I think: #171 + #104
Closing as a dup in favor of #724