Skip to content

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

License

Notifications You must be signed in to change notification settings

mailchimp/mailchimp-client-lib-codegen

Repository files navigation

Mailchimp Developer

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.js mailchimp-marketing-node
PHP mailchimp-marketing-php
Ruby mailchimp-marketing-ruby
Python mailchimp-marketing-python
Transactional
Node.js mailchimp-transactional-node
PHP mailchimp-transactional-php
Ruby mailchimp-transactional-ruby
Python mailchimp-transactional-python

Published clients — External

Marketing
Node NPM
PHP Packagist
Ruby RubyGems
Python (Dist) PyPI
Python (Test)) PyPI
Transactional
Node NPM
PHP Packagist
Ruby RubyGems
Python (Dist) PyPI
Python (Test) PyPI