routesms

1.0.3 • Public • Published

routesms

Simple Javascript Library for easy Route Mobile services integration: http://www.routemobile.com - SMS Gateway solution

For your reliable local integration to bulk SMS, TTS and more in Nigeria: http://betasms.com.ng

Installation

npm install routesms

How to use ?

var routesms = require('routesms');
 
routesms.connection = {
    host:"route-sms-ip",
    port:"port-given",
    username:"xxxxxxx",
    password:"xxxxxxxxx"
};
routesms.sender.source = "message-from";
//use
routesms.sender.destinaton.push('telephone-number');
//to send to a single telephone number
//or
routesms.sender.destinaton = ['array-of-many-numbers'];
// to send to many telephone numbers in bulk
 
routesms.sender.message = "message-content";
 
routesms.send('message-type [sms or flash]-optional(sms is default)', function(response){
//response gives you {status: 0/1, message:"description-of-the-response-status",
//message_id:"message-id-on-successful-request"}
  console.log(response);
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i routesms

    Weekly Downloads

    11

    Version

    1.0.3

    License

    ISC

    Last publish

    Collaborators

    • segsalerty