HollrIt.js
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