Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hollrit

pori8MIT2.0.1

SDK for HollrIt

sdk, hollrit, hollr, notifications, push

readme

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

changelog

v2.0.0 / 2016-09-04

  • add prepublish script
  • drop jshint
  • add travis, coveralls config
  • add badges
  • Updates to documentation.

v1.0 / 2015-12-13

  • Initial commit.