node-jusibe
v1.0.0
Published
A node package for jusibe.com API
Downloads
3
Readme
node-jusibe
A node package for jusibe.com API
Installation
$ npm install node-jusibe
Usage
var Jusibe = require('node-jusibe');
var jusibeSDK = new Jusibe('YOUR_JUSIBE_PUBLIC_KEY', 'YOUR_JUSIBE_ACCESS_TOKEN')
Send message
let params = {
to: '0803XXXXXXX',
from: 'John Doe',
message: 'Take me to your leader'
}
jusibeSDK.sendMessage(params)
.then(function (response) {
console.log(response)
})
.catch(function (error) {
console.log(response)
})
Get credit balance
jusibeSDK.getCredits()
.then(function (response) {
console.log(response)
})
.catch(function (error) {
console.log(response)
})
Get message status
jusibeSDK.messageStatus('dafnl3gle')
.then(function (response) {
console.log(response)
})
.catch(function (error) {
console.log(response)
})
License
The MIT License (MIT). Please see License File for more information.