httpgrid
TypeScript icon, indicating that this package has built-in type declarations

0.1.30 • Public • Published

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: 'foo.bar@example.com',
    },
  });
})();

Readme

Keywords

none

Package Sidebar

Install

npm i httpgrid

Weekly Downloads

1

Version

0.1.30

License

MIT

Unpacked Size

35.4 kB

Total Files

59

Last publish

Collaborators

  • httpgrid