Backend/node_modules/msg91/test.js

41 lines
822 B
JavaScript
Raw Normal View History

2021-12-31 09:33:23 +00:00
/**
* 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);
})