Skip to content

kaustubhn/node-mautic

 
 

Repository files navigation

node-mautic

A Node.js Mautic API implemented with ES6 + async/await. Tested with Node 10.

Installation

$ npm install node-mautic

Usage

  1. Require the class: `const MauticConnector = require('node-mautic');
  2. Instantiate an object: const mauticConnector = new MauticConnector({apiUrl: 'https://your-url.com', username: '...', password: '...'});
  3. Make calls: const campaigns = (await mauticConnector.campaigns.listCampaigns()).campaigns;

Features

  • uses basic authentication
  • has methods for all ~200 documented API endpoints
  • has less than 400 lines of code
  • uses async/await (no callback hell)
  • some documentation
  • 6 Jest tests

Links

Thanks

About

Node.js Mautic API with ES6+async/await

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%