0.1.0 • Published 9 years ago

grunt-mailchimp-export-csv v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

grunt-mailchimp-export-csv

Export a mailchimp list to csv

Getting Started

ATTENTION: This plugin is not really tested - no warranties for anything...

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-mailchimp-export-csv --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-mailchimp-export-csv');

The "mailchimp_export_csv" task

Additionally this plugin requires a few node modules: fast-csv, fs, mailchimp

Overview

In your project's Gruntfile, add a section named mailchimp_export_csv to the data object passed into grunt.initConfig().

grunt.initConfig({
  mailchimp_export_csv: {
		websubscriber_list: {
			options : { 
					apiKey : '****', 
					listId : '****',
					csvFile : 'output.csv'
				},
		},
    },
});

Options

apiKey - Mailchimp API - Key

listId - Mailchimp ListId (Attention there are two listIds - don't take the one from the web but from the lists/list call.

csvFile - outputfile