Skip to content

0v3rst33r/mailerlite-sdk-nodejs

 
 

Repository files navigation

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.

About

Node.js wrapper for MailerLite API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.6%
  • Shell 4.4%