httpgrid
v0.1.30
Published
Never fail to deliver a webhook - It's simple. HTTPgrid is your fully managed webhooks service that provides the reliability, scalability and security, your team needs to focus on growth, not maintenance.
Downloads
6
Readme
HTTPgrid (Node.js)
Getting Started
Installation
Install the package with:
npm install httpgrid
# or
yarn add httpgrid
Usage
import { HTTPgrid } from 'httpgrid';
const httpGrid = new HTTPgrid('AUTH_TOKEN');
(async () => {
const application = await httpGrid.application.create({
name: 'My Application',
uid: 'my-application',
});
const endpoint = await httpGrid.endpoint.create(application.id, {
channels: [],
enabled: true,
eventTypes: ['user.created'],
headers: {},
name: 'My Endpoint',
uid: 'my-endpoint',
url: 'https://....',
});
const message = await httpGrid.message.create(application.id, {
channels: [],
eventType: 'user.created',
payload: {
email: '[email protected]',
},
});
})();