0.2.0 • Published 5 years ago
monkey-uploader v0.2.0
monkey-uploader
Nodejs mandrill template uploader ( only with API key and built templates )
Requirements
- API KEY
- html templates
Setup
npm i -S monkey-updater
const MonkeyUpdater = require('monkey-uploader');
const monkeyUpdater = new MonkeyUpdater(<Your MANDRILL API KEY HERE>:String);
Usages
UPDATE TEMPLATES
monkeyUpdater.update('html_template_path_here.html')
.then(res => console.log(res))
.catch(error => console.log(error));
OR ADD NEW TEMPLATES TOO
monkeyUpdater.add(
'html_template_path_here.html',
'Name here',
'from@noreplyemail.com',
'subject here'
)
.then(res => console.log(res))
.catch(error => console.log(error));