Skip to main content

ExactTarget SOAP Api made simple

Project description


Interface with the [ExactTarget SOAP Api]( for Django.
Uses the [oauth authentication](


Python 2.7+
Django 1.3+


1. Install the package

pip install django-exacttarget

2. Add the module to your INSTALLED_APPS in you


3. Set the wsdl url in your

Note: _The url might be different depending on the type of your application._


#The client

from exacttarget.client import PartnerAPI
api = PartnerAPI(internal_oauth_token)
print api.get_system_status()

Note: _You need to provide the internal\_oauth\_token you got from the [JWT information](
You can call any of the methods using the python syntax (i.e. ```VersionInfo()``` will be called using ```version_info()```)._

#The types

You can create an object of any type defined in the wsdl as follow:
from exacttarget import client
api = client.PartnerAPI(internal_oauth_token)
# Standard object
list = api.List
# Enum object
list.Type = api.ListTypeEnum.Private


#Create a list

from exacttarget import client

api = client.PartnerAPI(internal_oauth_token)
new_list = api.List
new_list.Description = "My description"
new_list.ListName = "My list name"
new_list.Type = api.ListTypeEnum.Private
new_list.ListClassification = api.ListClassificationEnum.ExactTargetList
co = api.CreateOptions
co.RequestType = api.RequestType.Synchronous
co.QueuePriority = api.Priority.Low

resp = api.create(co, [new_list])

print resp

Project details

Download files

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

Files for django-exacttarget, version 0.0.9-beta
Filename, size File type Python version Upload date Hashes
Filename, size django-exacttarget-0.0.9-beta.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page