Metadata-Version: 2.0
Name: django-exact-target
Version: 0.1.2
Summary: Integration between django and the SalesForce ExactTarget REST API
Home-page: https://gitlab.com/thelabnyc/django-exact-target
Author: Craig Weber
Author-email: crgwbr@gmail.com
License: ISC
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: Django (>=1.8.11)
Requires-Dist: raven (>=5.12.0)
Requires-Dist: requests (>=2.9.1)

===================
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.1.0
------------------
- Initial release.


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


0.1.2
----------------
- optional errorcode whitelist

.. |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



