2.0.1 • Published 8 years ago

hollrit v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

HollrIt.js

Build Status Coverage Status

JS client for HollrIt.

Install

npm install hollrit

Example

import hollrit from 'hollrit';

export default async function () {
  let client = hollrit('username', 'password');
  let response = await client.send('tag', 'message');
}

API

hollrit(username, password)

Create a new HollrIt client.

const client = hollrit('username', 'password');

login()

Manually logs a client in, fetching a new user token.

client.login()

send(tag, message, webook)

Sends a message. Optionally, registers webhooks for success send.

const response = await client.send('tag', 'message', {
  webhookUrl: 'http://example.com',
  webhookPayload: { foo: 'bar' }
});

License

MIT

2.0.1

8 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago