mares-sender
v0.0.2
Published
request-promise를 wrapping 한 mares-service module-sender용 요청자 모듈
Downloads
2
Readme
mares-sender
request 를 이용하여 sender 모듈을 사용하게 하는 third party
Installation
npm install --save mares-sender
Examples
const MaresSender = require('mares-sender')
const requester = require('../settings/requesters')
let maresSender = new MaresSender(requester,{
headers:{
accessToken:'access',
seceretToken:'secret'
},
emailInfoId:'5cdaafb7540a9813cfcaefc2',
templateInfoId:'5cdaafb7540a9813cfcaefc2',
group:'groupName'
})
let result = await maresSender.requestSendEmail([{
email:'[email protected]',
replacements: [{
keyword: 'keyValue',
value: 'toChange'
}]
}])