bita.nodejsnotify
Version:
Nodejs notification management micro-service
24 lines (18 loc) • 550 B
JavaScript
const Notify = require("./notify");
const { SmsIrChannel } = require("./channels/index");
const myNotify = new Notify();
var channels = {
smsir: new SmsIrChannel(
"30002101001203",
"3a6a91cc6b7874e9287e95cd",
"bitaideateam13992020"
),
};
test();
async function test() {
var sendResult = await myNotify.channel(channels["smsir"]).send("09131598127", "test sms");
console.log(sendResult);
// var result = await myNotify.channel(channels['smsir']).checkDelivery('33929690')
// console.log(result)
}
module.exports = Notify;