Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seed-message-sender-0.9.21.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

seed_message_sender-0.9.21-py2.py3-none-any.whl (59.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file seed-message-sender-0.9.21.tar.gz.

File metadata

File hashes

Hashes for seed-message-sender-0.9.21.tar.gz
Algorithm Hash digest
SHA256 261b7479ac65abaa9837f73c221d7ef464a21a24b5564a6a0487d7f5eb38945b
MD5 44642b3c0c827326eae3a6f7785d164d
BLAKE2b-256 1fc3669134193675549f2bc4f8a0f927903a0a69af5a8c0436e556d622933c9c

See more details on using hashes here.

File details

Details for the file seed_message_sender-0.9.21-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for seed_message_sender-0.9.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6decec41b69aebeeaa799b33032ac5fa86e2aeabff1f9f941af0b9dde0bfb88f
MD5 20a86ef888575a27e98b92cbfcdc0d0e
BLAKE2b-256 249655b833a5a4bd6d67e8d4e304a5d8bc86a57fcc179edbc85a0f916dc0fd2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page