mj

mailerlite-js

NodeJS wrapper for the MailerLite API.

Showing:

Popularity

Downloads/wk

7

GitHub Stars

5

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

1

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

mailerlite-js

A nodeJS wrapper for the MailerLite API.

MailerLite is an affordable solution for email marketing.

Check out the MailerLite documentation for more details about the API responses.

Installation

npm install mailerlite-js

Usage

Initialize the module with your secret API Key.

var ml = require('mailerlite-js');
ml.init("MAILERLITE_API_KEY");

Now just call the methods you need like this:

ml.campaigns.getAll(callback);

Methods

Params after the callback are optional.

Campaigns

  • getAll(callback, limit, page)
  • getDetails(campaign_id, callback)
  • getRecipients(campaign_id, callback, limit, page)
  • getOpens(campaign_id, callback, limit, page)
  • getClicks(campaign_id, callback, limit, page)
  • getUnsubscribes(campaign_id, callback, limit, page)
  • getBounces(campaign_id, callback, limit, page)
  • getSpamComplaints(campaign_id, callback, limit, page)

Lists

  • getAll(callback, limit, page)
  • getDetails(list_id, callback)
  • getActiveSubscribers(list_id, callback, limit, page)
  • getUnsubscribers(list_id, callback, limit, page)
  • getBounces(list_id, callback, limit, page)
  • create(list_name, callback)
  • update(list_id, list_name, callback)
  • delete(list_id, callback)

Subscribers

  • addToList(list_id, email, callback, firstName, otherFieldsArray, resubscribe)
  • removeFromList(list_id, email, callback)
  • unsubscribe(email, callback)
  • addManyToList(list_id, subscribers_array, callback, resubscribe)
  • getDetails(email, callback, history)
  • prepareFieldsArray(object)
  • prepareSubscriberObject(object)

Release History

  • 0.0.1

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial