-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtest.js
40 lines (27 loc) · 822 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* 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);
})