vexor.webhook()
Webhook Handling
Handle all webhooks from all platforms with a single method. No need to specify the platform and handle webhook secrets tokenization, decryption or signature verification; Vexor does it all and returns a standardized response.
The vexor.webhook()
method requires the Vexor instance to be initialized with a secret key for security reasons.
Methodvexor.webhook(req)
vexor.webhook()
Define a webhook handler in your app, indicate the path in the platform's webhook settings and use this method to handle the webhook. It will return a standardized response for all platforms.
Parameters
Returns
Returns a Promise that resolves to a VexorWebhookResponse object.
Usage Examples
Here are some examples of how to use the vexor.webhook()
method:
Usage
- usage: