Skip to content
/ jusibe Public

📲 JavaScript client for Jusibe.com SMS API service. http://jusibe.com

License

Notifications You must be signed in to change notification settings

azemoh/jusibe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jusibe Node.js Client

JavaScript client for Jusibe.com SMS API service

NPM version Build Status Code Climate GitHub stars

Installation

npm install jusibe

Usage

var Jusibe = require('jusibe');

var jusibe = new Jusibe("YOUR_JUSIBE_PUBLIC_KEY", "YOUR_JUSIBE_ACCESS_TOKEN");

Check SMS Credits

jusibe.getCredits()
  .then(res => {
    console.log(res.body)
  })
  .catch(err => {
    console.log(err.body);
  });

Send SMS

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);
  });

Check SMS status

jusibe.deliveryStatus('eq16v6vd26')
  .then(res => {
    console.log(res.body);
  })
  .catch(err => {
    console.log(err.body);
  });

License

Available as open source under the terms of the MIT License.

npm package

About

📲 JavaScript client for Jusibe.com SMS API service. http://jusibe.com

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published