<commit_before># Mailchimp output plugin for Embulk
[![Coverage Status](https://coveralls.io/repos/treasure-data/embulk-output-mailchimp/badge.svg?branch=master&service=github)](https://coveralls.io/github/treasure-data/embulk-output-mailchimp?branch=master)
[![Build Status](https://travis-ci.org/treasure-data/embulk-output-mailchimp.svg)](https://travis-ci.org/treasure-data/embulk-output-mailchimp?branch=master)

add e-mail to List in MailChimp.

## Overview

* **Plugin type**: output
* **Load all or nothing**: no
* **Resume supported**: no
* **Cleanup supported**: no

## Configuration

- **apikey**: Mailchimp API key (string, required)
- **list_id**: Mailchimp List id (string, required)
- **double_optin**: control whether to send an opt-in confirmation email (boolean, default: true)
- **update_existing**: control whether to update members that are already subscribed to the list or to return an error (boolean, default: false)
- **replace_interests**: determine whether we replace the interest groups with the updated groups provided, or we add the provided groups to the member's interest groups (boolean, default: true)
- **email_column**: column name for email (string, default: 'email')
- **fname_column**: column name for first name (string, default: 'fname')
- **lname_column**: column name for last name(string, default: 'lname')
- **grouping_columns**: column names array for group name

## Example

```yaml
out:
  type: mailchimp
  apikey: '<KEY>'
  list_id: 'XXXXXXXXXX'
  double_optin: false
  update_existing: false<commit_msg>add default value description<commit_after># Mailchimp output plugin for Embulk
[![Coverage Status](https://coveralls.io/repos/treasure-data/embulk-output-mailchimp/badge.svg?branch=master&service=github)](https://coveralls.io/github/treasure-data/embulk-output-mailchimp?branch=master)
[![Build Status](https://travis-ci.org/treasure-data/embulk-output-mailchimp.svg)](https://travis-ci.org/treasure-data/embulk-output-mailchimp?branch=master)

add e-mail to List in MailChimp.

## Overview

* **Plugin type**: output
* **Load all or nothing**: no
* **Resume supported**: no
* **Cleanup supported**: no

## Configuration

- **apikey**: Mailchimp API key (string, required)
- **list_id**: Mailchimp List id (string, required)
- **double_optin**: control whether to send an opt-in confirmation email (boolean, default: true)
- **update_existing**: control whether to update members that are already subscribed to the list or to return an error (boolean, default: false)
- **replace_interests**: determine whether we replace the interest groups with the updated groups provided, or we add the provided groups to the member's interest groups (boolean, default: true)
- **email_column**: column name for email (string, default: 'email')
- **fname_column**: column name for first name (string, default: 'fname')
- **lname_column**: column name for last name(string, default: 'lname')
- **grouping_columns**: column names array for group name(array, default: nil)

## Example

```yaml
out:
  type: mailchimp
  apikey: '<KEY>'
  list_id: 'XXXXXXXXXX'
  double_optin: false
  update_existing: false
{'fraction_non_alphanumeric': 0.1368119630925867, 'fraction_numerical': 0.0, 'mean_word_length': 5.68936170212766, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6214806', 'n_tokens_mistral': 953, 'n_tokens_neox': 940, 'n_words': 302}