Skip to content
Node.js Mautic API with ES6+async/await
JavaScript
Branch: master
Clone or download
Latest commit 7cbcad0 Jun 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE Initial commit Mar 24, 2019
MauticConnector.js
MauticConnector.test.js
README.md
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.