0.1.23 • Published 2 years ago

octohooks v0.1.23

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Octohooks (Node.js)

Getting Started

Installation

Install the package with:

npm install octohooks
# or
yarn add octohooks

Usage

import { Octohooks } from 'octohooks';

const octohooks = new Octohooks('AUTH_TOKEN');

(async () => {
  const application = await octohooks.application.create({
    name: 'My Application',
    uid: 'my-application',
  });

  const endpoint = await octohooks.endpoint.create(application.id, {
    channels: [],
    enabled: true,
    eventTypes: ['user.created'],
    headers: {},
    name: 'My Endpoint',
    uid: 'my-endpoint',
    url: 'https://....',
  });

  const message = await octohooks.message.create(application.id, {
    channels: [],
    eventType: 'user.created',
    payload: {
      email: 'foo.bar@example.com',
    },
  });
})();
0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago