mailerlite-mailerlite

0.5.1 • Public • Published

MailerLite SDK for Node.js

Many thanks to Filipe Oliveira for the API v1 implementation which this fork was created from.

NPM package NPM package Travis Build Travis Build

Node.js wrapper for MailerLite API, supporting versions 1 and 2.

Usage

Install with npm: npm install --save mailerlite-mailerlite.

Terrible name, I know, but needed to get uniqueness :)

Browse your lists (API v1):

var MailerLite = require('mailerlite');
var ML = new MailerLite(apiKey);
ML.Lists.getAll()
  .then(function(data) {
    console.log(data);
  });

Browse your groups ( API v2):

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.

Compatibility

All methods will return promises.

Documentation

  • API documentation:

License

MIT.

Package Sidebar

Install

npm i mailerlite-mailerlite

Weekly Downloads

1

Version

0.5.1

License

MIT

Unpacked Size

35.8 kB

Total Files

22

Last publish

Collaborators

  • 0v3rst33r