Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

ExactTarget SOAP Api made simple

Project description

OVERVIEW
========

Interface with the [ExactTarget SOAP Api](http://help.exacttarget.com/en/technical_library/web_service_guide/working_with_soap_web_service_api/) for Django.
Uses the [oauth authentication](https://code.exacttarget.com/devcenter/getting-started/hubexchange-apps/oauth-and-soap-api).

REQUIREMENTS
============

Python 2.7+
Django 1.3+

INSTALLATION
============

1. Install the package

```shell
pip install django-exacttarget
```

2. Add the module to your INSTALLED_APPS in you settings.py

```python
INSTALLED_APPS = (
...
'exacttarget',
...
)
```

3. Set the wsdl url in your settings.py

```python
EXACTTARGET_SOAP_WSDL_URL = "https://webservice.s6.exacttarget.com/etframework.wsdl"
```
Note: _The url might be different depending on the type of your application._

USAGE
=====

#The client

```python
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](https://code.exacttarget.com/devcenter/getting-started/hubexchange-apps).
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:
```python
from exacttarget import client
api = client.PartnerAPI(internal_oauth_token)
# Standard object
list = api.List
# Enum object
list.Type = api.ListTypeEnum.Private
```

EXAMPLES
========

#Create a list

```python
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


Release history Release notifications

This version
History Node

0.0.9-beta

History Node

0.0.8-beta

History Node

0.0.7-beta

History Node

0.0.6-beta

History Node

0.0.5-beta

History Node

0.0.4-beta

History Node

0.0.3-beta

History Node

0.0.2-beta

History Node

0.0.1-beta

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-exacttarget-0.0.9-beta.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Mar 27, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page