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/
WhatsApp:
API_URL: Root URL for WhatsApp API
API_TOKEN: Token for accessing the API
HSM_NAMESPACE: (optional) HSM namespace if outbounds are to be sent as HSMs
HSM_ELEMENT_NAME: (optional) HSM element name if outbounds are to be sent as HSMs
HMAC_SECRET: (optional) The HMAC secret key for receiving event and inbound webhooks
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
File details
Details for the file seed-message-sender-0.10.4.tar.gz
.
File metadata
- Download URL: seed-message-sender-0.10.4.tar.gz
- Upload date:
- Size: 53.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3358e14d1571b6f0e11a9983e03869a67131eac891efaf6cd39a0592c965097c |
|
MD5 | 40524d848006e1485beac7b7d6a03285 |
|
BLAKE2b-256 | 88b3bcc147355228c2276bffd5301630e1ca2c317e28a24184e544a42adc8e6a |
File details
Details for the file seed_message_sender-0.10.4-py2.py3-none-any.whl
.
File metadata
- Download URL: seed_message_sender-0.10.4-py2.py3-none-any.whl
- Upload date:
- Size: 71.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3609b980c740417ccd52618b31b70248f12ce31903bcbf0b61dc3f3bd03bd342 |
|
MD5 | 3c50cecfd82b5a1ea35cd2ea027103a0 |
|
BLAKE2b-256 | 6789a87c9a20182a829966e29cabad9b213da87ecbd528089bcb477004710572 |