41 lines
822 B
JavaScript
41 lines
822 B
JavaScript
|
/**
|
||
|
* Created by hiren on 26/11/15.
|
||
|
*/
|
||
|
|
||
|
var msg91 = require("./index")("API", "SENDERID", "ROUTE");
|
||
|
|
||
|
var mobileNo = "XXXXXXXXXX";
|
||
|
|
||
|
msg91.send("mobileNo", "MESSAGE", function (err, response) {
|
||
|
console.log(err);
|
||
|
console.log(response);
|
||
|
});
|
||
|
|
||
|
|
||
|
var mobileList = [ "XXXXXXXXXX", "XXXXXXXXXX", "XXXXXXXXXX" ];
|
||
|
|
||
|
msg91.send(mobileList, "MESSAGE", function (err, response) {
|
||
|
console.log(err);
|
||
|
console.log(response);
|
||
|
});
|
||
|
|
||
|
var mobileNoCSV = "XXXXXXXXXX,XXXXXXXXXX,XXXXXXXXXX";
|
||
|
|
||
|
msg91.send(mobileNoCSV, "MESSAGE", function (err, response) {
|
||
|
console.log(err);
|
||
|
console.log(response);
|
||
|
});
|
||
|
|
||
|
msg91.getBalance(function(err, response){
|
||
|
console.log(err);
|
||
|
console.log(response);
|
||
|
})
|
||
|
|
||
|
msg91.getBalance("ROUTE", function(err, response){
|
||
|
console.log(err);
|
||
|
console.log("Custom Router : " + response);
|
||
|
})
|
||
|
|
||
|
|
||
|
|