0.1.0 • Published 5 years ago

webhook-provider v0.1.0

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

Webhook Provider

Simple webhook provider that posts to an endpoint.

Usage

  const params = {
    headers: {
      'Authorization': 'Bearer jwt',
    },
    url: 'http://localhost:5000',
    method: 'POST',
  };

  const webhook = new WebhookProvider(params);

  webhook.send({
    text: 'Hello, world!',
  });
0.1.0

5 years ago