1.0.0 • Published 9 years ago
rumour-js v1.0.0
rumour-js
rumour-js is a js wrapper to communicate with Rumour REST API.
Installation
$ npm install rumour-js
Usage
var Rumour = require('rumour-js');
var rumour = new Rumour('access_token');
rumour.resetToken('api_key',
'api_secret')
.then(function(response) {
console.log(response);
});
rumour.client.sendTextMessage('000000000',
'000000000',
'Text Message Body')
.then(function(response) {
console.log(response);
});
rumour.client.sendPushNotification(['recipient1', 'recipient2'],
{ title: 'Push Notification Title'})
.then(function(response) {
console.log(response);
});
API documentation here.
Tests
In the works...
License
rumour-js is licensed under MIT License.