monkey-uploader
v0.2.0
Published
Nodejs mandrill template uploader ( only with API key and built templates )
Downloads
6
Maintainers
Readme
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',
'[email protected]',
'subject here'
)
.then(res => console.log(res))
.catch(error => console.log(error));