-
Notifications
You must be signed in to change notification settings - Fork 36
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
How to subscribe to a web hook? #27
Comments
@jwillmer do changes in config file. Config file for emq-web-hook located in plugins/emq-web-hook. |
Yes, I know the config. The config is also posted in the README. I am asking for how do I subscribe 1-n applications to the web hooks. I guess the reference to the config means that as of now this is a manual process that can't be done via web interface? |
@jwillmer Understood. Till now it works as 1-1 application. if you check config there is option to add one endpoint. You can use a middleware who will consume webhook's request and distribute among n applications. |
@emqplus can we use endpoint as array than string ? Then it will be possible to send request to multiple applications for an event of webhook. |
I lately design my own web hook endpoint for a web application. I oriented myself on the excellent work of pipedrive.com. Below you can see some screenshots of there web UI for creating and managing web hooks. The point is that you can subscribe to defined events. I am not interested in all events. I only like to be notified about one - maybe I even don't care about the payload instead I just do something then I get notified. This brakes if you just send notifications for all events. |
@jwillmer only keep the events in config file you want to get notified. Remove the events from config those are not necessary. |
Based on my knowledge about web hooks I need to subscribe to a web hook first by giving him a URL he should send the payload to. I don't see how to do this in your README.
The text was updated successfully, but these errors were encountered: