tq-notification
v1.0.4
Published
Library to interact with Notification service
Downloads
1
Readme
Tq-notification
Installation
npm install tq-notification --save
Usage
var tq = require('tq-notification');
tq.init('localhost:3002', function(error, result) {
if (error) {
console.log(error)
return
}
console.log("> init done: ", result);
var msg = {
request_id: 12345,
transport: 'email',
message: {
to: '[email protected]',
subject: 'test',
body: "Hello my Dear",
attachment: "ATTACHMENT"
}
};
tq.send(msg).then(function() {
console.log("> the message was sent")
})
})