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

How to subscribe to a web hook? #27

Open
jwillmer opened this issue Dec 23, 2017 · 6 comments
Open

How to subscribe to a web hook? #27

jwillmer opened this issue Dec 23, 2017 · 6 comments
Assignees
Milestone

Comments

@jwillmer
Copy link

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.

@s4kibs4mi
Copy link
Collaborator

@jwillmer do changes in config file. Config file for emq-web-hook located in plugins/emq-web-hook.

@jwillmer
Copy link
Author

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?

@s4kibs4mi
Copy link
Collaborator

@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.

@s4kibs4mi
Copy link
Collaborator

@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.

@jwillmer
Copy link
Author

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.

pipedrive ui 1

pipedrive ui 2

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.

@s4kibs4mi
Copy link
Collaborator

@jwillmer only keep the events in config file you want to get notified. Remove the events from config those are not necessary.

@emqplus emqplus added this to the 2.4-beta.1 milestone Dec 26, 2017
@emqplus emqplus assigned HJianBo and unassigned emqplus Dec 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants