JavaScript client for Jusibe.com SMS API service
npm install jusibevar Jusibe = require('jusibe');
var jusibe = new Jusibe("YOUR_JUSIBE_PUBLIC_KEY", "YOUR_JUSIBE_ACCESS_TOKEN");jusibe.getCredits()
.then(res => {
console.log(res.body)
})
.catch(err => {
console.log(err.body);
});var payload = {
to: '080XXXXXXXX',
from: 'Jusibe Joe',
message: 'Hello From the other side 😎\nI must have called a thousand times.'
};
jusibe.sendSMS(payload)
.then(res => {
console.log(res.body);
})
.catch(err => {
console.log(err.body);
});jusibe.deliveryStatus('eq16v6vd26')
.then(res => {
console.log(res.body);
})
.catch(err => {
console.log(err.body);
});Available as open source under the terms of the MIT License.