Use Constant Contact SDKs to quickly integrate our software into your application for a given platform or programming language.
Select from one of the following SDKs (with more coming soon):
Or, check out all our V3 API SDKs on GitHub.
Python
Requires Python 3.7
Install the Constant Contact Python client package using one of the following methods:
Use pip
To install directly using pip
, run:
`pip install git+https://github.com/constantcontact/constant-contact-v3api-client-python.git` You may need to run `pip` with root permission. For example:
`sudo pip install git+https://github.com/constantcontact/constant-contact-v3api-client-python.git`
Use Setuptools
To install using Setuptools
, select from one of the following methods:
For a single user, run:
`python setup.py install --user`
For all users, run:
`sudo python setup.py install`
Import the Package
`import constant_contact_api_client`
Learn more, including how to use an access token to send API requests: Python
Ruby
Build a gem
Build the Ruby code into a gem:
`gem build constant_contact_client.gemspec`
Install the gem
Locally
`gem install ./constant_contact_client-1.2.0.gem`
Add the following to the Gemfile:
gem 'constant_contact_client', '~> 1.2.0'
From Rubygems:
gem install constant_contact_client
Load the gem
require ‘constant_contact_client’
Learn more, including how to setup authorization: Ruby
Typescript
Install the library using npm:
`npm install ctct-api-client`
Learn more, including how to get an access token: Typescript