node-rocketsms-api

1.1.1 • Public • Published

node-rocketsms-api

RocketSMS sms-gateway API.

build status

Installation

This module is installed via npm:

$ npm install node-rocketsms-api

Example Usage

var RocketSMS = require('node-rocketsms-api');
 
var sms = new RocketSMS({username: '999999999', password: 'XXXXXXXX'});

Create message

sms.send('375999999999', 'Привет, мир!', true)
  .then(function(res) {
    ...
  })
  .catch(function(err) {
    ...
  };

Message status

sms.status(34305153)
  .then(function(res) {
    ...
  })
  .catch(function(err) {
    ...
  })

Account balance

sms.balance()
  .then(function(res) {
    ...
  })
  .catch(function(err) {
    ...
  })

Alfa-numbers list

sms.senders()
  .then(function(res) {
    ...
  })
  .catch(function(err) {
    ...
  })

Add alfa-number

sms.addSender('99999999999')
  .then(function(res) {
    ...
  })
  .catch(function(err) {
    ...
  })

Templates list

sms.templates()
  .then(function(res) {
    ...
  })
  .catch(function(err) {
    ...
  })

License

3-clause BSD © Egor Kuryanovich

Readme

Keywords

Package Sidebar

Install

npm i node-rocketsms-api

Weekly Downloads

3

Version

1.1.1

License

BSD-3-Clause

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • noglik
  • sontan