Node.js wrapper for MailerLite API, supporting versions 1 and 2.
Install with npm: npm install --save mailerlite-mailerlite
.
Terrible name, I know, but needed to get uniqueness :)
var MailerLite = require('mailerlite');
var ML = new MailerLite(apiKey);
ML.Lists.getAll()
.then(function(data) {
console.log(data);
});
var MailerLite = require('mailerlite');
var ML = new MailerLite(apiKey, 2);
ML.Groups.getAll()
.then(function(data) {
console.log(data);
});
Refer to the test cases for more detail.
All methods will return promises.
MIT.