0.1.30 • Published 6 months ago

httpgrid v0.1.30

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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',
    },
  });
})();
0.1.30

6 months ago

0.1.26

9 months ago

0.1.27

8 months ago

0.1.28

8 months ago

0.1.29

8 months ago

0.1.24

12 months ago

0.1.25

12 months ago

0.1.23

1 year ago