Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Django package for creating email marketing campaigns in Constant Contact

Project Description

django-constant-contact

Django package for creating email marketing campaigns in Constant Contact.

Inlines CSS into HTML before sending to Constant Contact.

Installation

Using pip:

pip install django-constant-contact

Settings

The following variables should be set in your settings.py:

CONSTANT_CONTACT_API_KEY
CONSTANT_CONTACT_ACCESS_TOKEN
CONSTANT_CONTACT_FROM_EMAIL
CONSTANT_CONTACT_REPLY_TO_EMAIL
CONSTANT_CONTACT_USERNAME
CONSTANT_CONTACT_PASSWORD

CONSTANT_CONTACT_API_KEY is assigned by Constant Contact when you register your application. (You need to register as a Constant Contact developer.)

CONSTANT_CONTACT_ACCESS_TOKEN is the access token granted to your application by a Constant Contact user. This is the User who will own the uploaded Constant Contact email marketing campaigns.

Usage Examples

Create a new marketing campaign:

email_content = "<html>....</html>"
text_content = "blah blah blah"
constant_contact = ConstantContact()

options = {name: , from_email: , email_content: , text_content:, ....}

try:
  campaign = constant_contact.new_email_marketing_campaign(options)
except ConstantContactAPIError as exc:
  print exc.errors

Update an existing campaign (stored in a model):

options['email_marketing_campaign'] = campaign
options['name'] = "new name"

try:
  constant_contact.update_email_marketing_campaign(options)
except ConstantContactAPIError as exc:
  print exc.errors
Release History

Release History

This version
History Node

1.3

History Node

1.2.1

History Node

1.2

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-constant-contact-1.3.tar.gz (7.7 kB) Copy SHA256 Checksum SHA256 Source Jan 6, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting