Skip to content
📲 JavaScript client for Jusibe.com SMS API service. http://jusibe.com
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples refactor code to use Promises Jun 12, 2017
test Update send SMS request method Mar 27, 2018
.codeclimate.yml Bump version number and update badges Sep 16, 2016
.editorconfig
.gitignore refactor code to use Promises Jun 12, 2017
.npmignore
.travis.yml refactor code to use Promises Jun 12, 2017
LICENSE Add LICENSE and examples Aug 21, 2016
README.md
index.js
package.json
yarn.lock refactor code to use Promises Jun 12, 2017

README.md

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

You can’t perform that action at this time.