Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third Party Webhook Support - JSON sub-string re-map support #209

Open
oopen opened this issue Sep 15, 2024 · 2 comments
Open

Third Party Webhook Support - JSON sub-string re-map support #209

oopen opened this issue Sep 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@oopen
Copy link

oopen commented Sep 15, 2024

💡 The Idea

Support re-mapping sub-key of JSON

For exemple to support Scoold webhook format described here

{"appid":"scoold","event":"update","items":[{"id":"tag:acpi","timestamp":1486848081865,"type":"tag","appid":"scoold","updated":1561644547996,"name":"ParaObject tag:acpi","votes":2,"version":0,"stored":true,"indexed":true,"cached":true,"tag":"acpi","count":1,"objectURI":"/tags/acpi","plural":"tags"}],"timestamp":1561644548430}

We need to access the JSON sub-key, witch is a Object contain in a Array

🔨 Breaking Feature

It will be great to re-map with sub-keys of the JSON.
For example we would like to access to the key items[0].objectURI

Call URL will be in this case :

http://apprise/notify/{KEY}?:appid=title&:items[0].objectURI=body

@oopen oopen added the enhancement New feature or request label Sep 15, 2024
@caronc
Copy link
Owner

caronc commented Sep 15, 2024

Would it be easier to just create a scoold:// plugin for you (add it into what is already supported) and do the mapping for you? Or maybe call it para:// to follow the common structure?

You're request though may be possible to do as well.

Thoughts?

@oopen
Copy link
Author

oopen commented Sep 15, 2024

I'm not sure to understand.

The goal is to permit Scoold (or para apps) to call by webhook apprise, to permit Scoold send notifications.
Not apprise to call Scoold, via plugin para:// or scoold://

In this case, it will not necessary to make a apprise plugin ?

It think, it will be better to have the flexibility that re-map json, can access to a sub-key.
That will be useful for big rang of of apps webhook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants