0.6.2 • Published 6 months ago
@flatfile/plugin-webhook-event-forwarder v0.6.2
The @flatfile/plugin-webhook-event-forwarder plugin forwards events via webhook for clients to manipulate at their
endpoints in a language-agnostic way.
Event Type:
listener.on('**')
Parameters
url - string
The url parameter takes the webhook url where the events will be forwarded.
callback - function
The callback parameter takes a function that will be called with the webhook response and the event object.
options - object
The options parameter takes an object with the following properties:
debug-boolean- (optional) - Whether to log debug messages.
Usage
Install
npm i @flatfile/plugin-webhook-event-forwarderImport
import { webhookEventForwarder } from "@flatfile/plugin-webhook-event-forwarder";listener.js
listener.use(webhookEventForwarder("https://webhook.site/...", (data, event) => {
console.log(data, event);
}));