Home

Awesome

<p align="center"> <a href="https://mailchimp.com/developer/"> <img src="./resources/images/mcdev-banner.png" alt="Mailchimp Developer" width="100%" height="auto"> </a> </p>

mailchimp-client-lib-codegen

This tool is used to auto-generate and publish both Mailchimp Marketing and Transactional client libraries.

Quick start

git clone git@github.com:mailchimp/mailchimp-client-lib-codegen.git
cd mailchimp
npm install
npm run generate

Generate clients

# Install codegen
brew install swagger-codegen@2

# Update $PATH
export JAVA_HOME="/usr/libexec/java_home -v 1.8"
export PATH="$JAVA_HOME:$PATH"
export PATH="/usr/local/opt/swagger-codegen@2/bin:$PATH"

# See package.json for all available generate commands
npm run generate

Published clients — Internal

Marketing
Node.jsmailchimp-marketing-node
PHPmailchimp-marketing-php
Rubymailchimp-marketing-ruby
Pythonmailchimp-marketing-python
Transactional
Node.jsmailchimp-transactional-node
PHPmailchimp-transactional-php
Rubymailchimp-transactional-ruby
Pythonmailchimp-transactional-python

Published clients — External

Marketing
NodeNPM
PHPPackagist
RubyRubyGems
Python (Dist)PyPI
Python (Test))PyPI
Transactional
NodeNPM
PHPPackagist
RubyRubyGems
Python (Dist)PyPI
Python (Test)PyPI