https://github.com/roverdotcom/django-fuelsdk
ExactTarget FuelSDK wrapper for Django
https://github.com/roverdotcom/django-fuelsdk
Last synced: 12 months ago
JSON representation
ExactTarget FuelSDK wrapper for Django
- Host: GitHub
- URL: https://github.com/roverdotcom/django-fuelsdk
- Owner: roverdotcom
- License: mit
- Created: 2014-02-05T22:49:07.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-14T07:57:42.000Z (almost 11 years ago)
- Last Synced: 2024-12-29T05:27:20.470Z (over 1 year ago)
- Language: Python
- Size: 307 KB
- Stars: 1
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-fuelsdk
==============
ExactTarget FuelSDK wrapper for Django.

Install
=======
**Install Dependencies**
```bash
pip install -r requirements.txt
```
**Add To INSTALLED_APPS**
```python
INSTALLED_APPS = [
# ...
django_fuelsdk,
]
```
**Add Settings**
```python
EXACT_TARGET_CLIENT_ID = 'xxxx'
EXACT_TARGET_CLIENT_SECRET = 'xxxx'
# https://code.exacttarget.com/question/there-any-cetificrate-install-our-server-access-et-api
EXACT_TARGET_WSDL_URL = 'https://webservice.exacttarget.com/etframework.wsdl'
```
Usage
=====
```python
from django_fuelsdk.fuel import FuelClient
f = FuelClient()
# Send a triggered send to a specific subscriber (used for transactional email)
f.send('Welcome', 'test@example.com', {'variable': 'test'})
# Add a subscriber
# Note: The underlying ExactTarget API throws an error when trying to
# add a subscriber that already exists. This method will silence that error,
# making add_subscriber idempotent.
f.add_subscriber('test@example.com', {'variable': 'test'})
# Any error returned by the API will cause a django_fuelsdk.fuel.FuelApiError
# exception to be raised.
f.send('Not an Email', 'test@example.com', {})
```