mixmax-api
v1.5.0
Published
Mixmax API wrapper
Downloads
1,704
Readme
mixmax-api
Cheeky wrapper around the Mixmax API
Installation
npm i mixmax-api
Authentication
In order to use the mixmax-api
library, you'll need a Mixmax API key. You can
retrieve this key from your Mixmax settings page. Once you have that key, you
can authenticate like so:
const MixmaxAPI = require('mixmax-api');
const apiKey = 'super-secret-key'; // Your API key here.
const api = new MixmaxAPI(apiKey);
Usage
Sequences
let sequenceID = 'sequence-id-here';
const sequence = api.sequences.sequence(sequenceID);
Add recipients to a Sequence
sequence.addRecipients([{
email: '[email protected]',
variables: {
email: '[email protected]'
}
}].then((results) => {
console.log(result);
});