Metadata-Version: 2.0
Name: seed-message-sender
Version: 0.9.20
Summary: Seed Message Sender mircoservice
Home-page: http://github.com/praekelt/seed-message-sender
Author: Praekelt.org
Author-email: dev@praekelt.org
License: BSD
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Django (==1.9.12)
Requires-Dist: djangorestframework (==3.3.2)
Requires-Dist: dj-database-url (==0.3.0)
Requires-Dist: psycopg2 (==2.7.1)
Requires-Dist: raven (==5.32.0)
Requires-Dist: django-filter (==0.12.0)
Requires-Dist: whitenoise (==2.0.6)
Requires-Dist: celery (==3.1.24)
Requires-Dist: django-celery (==3.1.17)
Requires-Dist: redis (==2.10.5)
Requires-Dist: pytz (==2015.7)
Requires-Dist: django-rest-hooks (==1.3.1)
Requires-Dist: go-http (==0.3.0)
Requires-Dist: drfdocs (==0.0.11)
Requires-Dist: django-redis-cache (==1.7.1)
Requires-Dist: seed-papertrail (>=1.5.1)
Requires-Dist: seed-services-client (==0.31.0)
Requires-Dist: django-py-zipkin (==0.2.5)
Requires-Dist: django-getenv (==1.3.2)

===================
Seed Message Sender
===================

Sends and receives messages between seed services and Vumi HTTP API

Channel configuration
---------------------

Concurrency Limiter Fields:
^^^^^^^^^^^^^^^^^^^^^^^^^^^

* **concurrency_limit**: A value of 0 disables concurrency limiter
* **message_delay**: Seconds to wait before retrying a waiting message
* **message_timeout**: Seconds until we assume a message has finished

Configuration:
^^^^^^^^^^^^^^

JSON field containing the following data:

Generic API:
""""""""""""

* **HTTP_API_URL**: http://example.com/
* **HTTP_API_AUTH**: ('username', 'password')
* **HTTP_API_FROM**: +4321
* **OVERRIDE_PAYLOAD**: {'new_key': 'key_from_original_payload'}
* **STRIP_FILEPATH**: True/False - True when voice files are hosted where the API is.

Original Payload::

    {
        "to": "+27820000000",
        "from": "1444",
        "content": "Hey, this is a message!",
        "channel_data": {
            "voice": {
                "speech_url": "http://sbm.com/hello.mp3"
            }
        }
    }

Example of OVERRIDE_PAYLOAD::

    {
        "to_msisdn": "to",
        "from_number": "from",
        "text": "content",
        "filename": "channel_data.voice.speech_url"
    }

Will generate this payload::

    {
        "to_msisdn": "+27820000000",
        "from_number": "1444",
        "text": "Hey, this is a message!",
        "filename": "http://sbm.com/hello.mp3"
    }


Junebug:
""""""""

* **JUNEBUG_API_URL**: http://example.com/
* **JUNEBUG_API_AUTH**: ('username', 'password')
* **JUNEBUG_API_FROM**: +4321

Vumi:
"""""

* **VUMI_CONVERSATION_KEY**: conv-key
* **VUMI_ACCOUNT_KEY**: account-key
* **VUMI_ACCOUNT_TOKEN**: account-token
* **VUMI_API_URL**: http://example.com/


