A Node.js Mautic API implemented with ES6 + async/await. Tested with Node 10.
$ npm install node-mautic
- Require the class: `const MauticConnector = require('node-mautic');
- Instantiate an object:
const mauticConnector = new MauticConnector({apiUrl: 'https://your-url.com', username: '...', password: '...'});
- Make calls:
const campaigns = (await mauticConnector.campaigns.listCampaigns()).campaigns;
- 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
- NPM: https://www.npmjs.com/package/node-mautic
- GitHub: https://github.com/vdavid/node-mautic/
- To https://github.com/sambarnes90/node-mautic/ for the code I started from
- To my company CodeBerry that allowed me to do this work and open-source it.