Mailchimp Export API for NodeJS(4.0+)
Mailchimp api wrapper for the mailchimp export API v1 using request/request library.
Breaking change
- On V4+, functionName+"raw" is removed. raw is now an option.
// Easily migrate // FROM mailchimpExport;// TOmailchimpExport;
Install
npm install node-mailchimp-export --save
Available functions
name | description |
---|---|
listMembers | Export list members in a single JSON |
campaignSubscriberActivity | Get subscribers w/activity in a JSON array |
Usage
const MailchimpExport = ;const fs = ;const mailchimpExport = YOUR_MAILCHIMP_API_KEY; /* Export list members in a single JSON */mailchimpExport ; /* Export campaignSubscriberActivity - Get a single JSON Object */mailchimpExport ;
Example usage wih option: raw
/* Export campaignSubscriberActivity - Get a request/request object w/ option [raw=true] */ mailchimpExport ;
For more info on other ways to pipe the data, check this
For an updated list of params, check the API Docs here