Skip to main content

Integration between django and the SalesForce ExactTarget REST API

Project description

===================
django-exact-target
===================

| |license| |kit| |format| |downloads|

This library serves as a connector between `django` and the `Exact Target REST API <https://code.exacttarget.com/apis-sdks/rest-api/v1/routes.html>`_. It will support more of the API in the future, but currently only supports TriggeredSends.


Installation
============

Install using pip.::

$ pip install django-exact-target

Add your exact target client settings to your Django project's settings.py file.::

EXACT_TARGET_CLIENT_ID = 'my-client-id...'
EXACT_TARGET_CLIENT_SECRET = 'my-client-secret...'

Usage
=====

Dispatch a `TriggeredSend`. See also `message definition sends <https://code.exacttarget.com/apis-sdks/rest-api/v1/messaging/messageDefinitionSends.html>`_.::

from exacttarget.messages import TriggeredSend

sender = TriggeredSend('my-triggered-send-id')
sender.dispatch('foo@example.com', {
# SubscriberAttributes
"Region": "West",
"City": "Indianapolis",
"State": "IN"
})

Resources
=========

.. _ExactTarget API docs: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/18999.html


Changelog
=========

0.2.0
----------------
- Migrate from Sentry's old SDK (raven) to their new SDK (sentry-sdk).
- Add support for Python 3.7.

0.1.2
----------------
- optional errorcode whitelist
- Exactarget responses with error codes in ET_IGNORED_ERROR_CODES will not throw exceptions


0.1.1
-----------------
- support for plaintext errors in responses


0.1.0
------------------
- Initial release.





.. |license| image:: https://img.shields.io/pypi/l/django-exact-target.svg
:target: https://pypi.python.org/pypi/django-exact-target
.. |kit| image:: https://badge.fury.io/py/django-exact-target.svg
:target: https://pypi.python.org/pypi/django-exact-target
.. |format| image:: https://img.shields.io/pypi/format/django-exact-target.svg
:target: https://pypi.python.org/pypi/django-exact-target
.. |downloads| image:: https://img.shields.io/pypi/dm/django-exact-target.svg?maxAge=2592000
:target: https://pypi.python.org/pypi/django-exact-target

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-exact-target, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_exact_target-0.2.0-py3-none-any.whl (5.3 kB) File type Wheel Python version 3.7 Upload date Hashes View hashes
Filename, size django-exact-target-0.2.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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