Seed Message Sender mircoservice
Project description
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for seed-message-sender-0.9.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9091577130280af9f27ddec5f21fb7d325db4b9ef5db0a715822136ed3c762e |
|
MD5 | 75d7c08611afab22daa51e289b72d75b |
|
BLAKE2b-256 | b95e1863b96482c61889ddba55f187cddb33ee1e86026bb884fafa7c54b5cabf |
Hashes for seed_message_sender-0.9.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b511492d3aa637b58c7f572ee17b82b9172737437c72c62172629308602460c |
|
MD5 | c12db8512aca68035dbe1c3a9af5c214 |
|
BLAKE2b-256 | 9ae6277c997ce565f5f88838ff6977bb086eeac248dcb90e98b9a0413261fe7f |