Skip to content

roverdotcom/django-fuelsdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-fuelsdk

ExactTarget FuelSDK wrapper for Django.

Travis CI Build Status

Install

Install Dependencies

pip install -r requirements.txt

Add To INSTALLED_APPS

INSTALLED_APPS = [
    # ...
    django_fuelsdk,
]

Add Settings

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

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', {})

About

ExactTarget FuelSDK wrapper for Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages