<a id="mailchimp"></a>

# MailChimp

<a id="backend-class"></a>

## Backend class

For Django, add this class path to `AUTHENTICATION_BACKENDS`. For other
integrations, use the same class path in the framework-specific backend
setting.

| Backend name   | Class path                                       |
|----------------|--------------------------------------------------|
| `mailchimp`    | `social_core.backends.mailchimp.MailChimpOAuth2` |

MailChimp uses OAuth v2 for Authentication, check the [official docs](https://apidocs.mailchimp.com/oauth2/).

- Create an app by filling out the form here: [Add App](https://admin.mailchimp.com/account/oauth2/)
- Fill `Client ID` and `Client Secret` values in the settings:
  ```default
  SOCIAL_AUTH_MAILCHIMP_KEY = '<App UID>'
  SOCIAL_AUTH_MAILCHIMP_SECRET = '<App secret>'
  ```
- Add the backend to the `AUTHENTICATION_BACKENDS` setting:
  ```default
  AUTHENTICATION_BACKENDS = (
      ...
      'social_core.backends.mailchimp.MailChimpOAuth2',
      ...
  )
  ```
- Then you can start using `{% url social_core:begin 'mailchimp' %}` in
  your templates
