0
I have never used any communication with Webhook, at the moment I am receiving communication from API Moip Signatures, when a new subscriber is registered I receive a JSON with the event and subscriber information that was created.
I’m using the Requestbin to do the tests, since I cannot receive Webhook on my local server (localhost:4200).
I would like to know how to listen to a Webhook communication and see which event was sent by the Moip Signatures API when some action is executed in the API.
For example when an invoice is created, the event is triggered INVOICE.CREATED. https://dev.moip.com.br/v1.5/reference#example-de-webhook-de-faturas-Invoices
I would like to control with a service when I receive a Webhook and notify the user of the action he has taken, whether a payment made etc.
I am using ngrok for testing and receiving a JSON via POST from the API, but I need to get this JSON every time I receive a POST from the API, as I do for listening if I receive a POST in Angular 5?
– Luiz Ricardo Cardoso
@Luizcardoso being the back-end the target of callback call I would say you may need to inform the frontend. Two possibilities: Polling or stream (websocket or similar).
– OnoSendai