Skip to content

pori/hollrit.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

About

๐Ÿš€ JS client for HollrIt.

Resources

License

Stars

Watchers

Forks

Packages

No packages published