How to use an Angled Webhook?

0

I've never used any communication with Webhook, I'm currently receiving communication from the Moip Subscriptions API , when a new subscriber is registered I get a JSON with the event and subscriber information that was created.

I'm using RequestBin to run the tests, since I can not get Webhook on my localhost (localhost: 4200).

I would like to know how to listen to a Webhook communication and see which event was sent by the Moip Subscriptions API when some action is executed in the API.

For example, when an invoice is created, the INVOICE.CREATED event is triggered. link

I would like to control with a service when I receive a Webhook and notify the user of the action he performed, whether it is a payment made etc.

    
asked by anonymous 03.03.2018 / 17:02

1 answer

1

A WebHook functions as a callback - in this case a URL that is called by the remote server.

  

I would like to know how to listen to a Webhook communication and see which event was sent by the Moip Subscriptions API when some action is executed in the API.

You need to expose your development machine to the internet, so that external requests come to your machine.

The way to implement this will depend on your local network topology - via NAT or adding your machine to the domain DMZ , for example.

    
05.03.2018 / 15:34