Skip to main content

django-snappy-vumi-bouncer

A Django app that bounces messages from Vumi to Snappy and back

Overview

+-------------------------------+        +----------------+         +------------------+
|            Vumi Go            |        |  Django Proj   |         |    Snappy        |
|                               |        |                |         |                  |
| +------------+    +---------+ |        | +------------+ |         |                  |
| | Vumi       |    | Vumi    | | HTTP   | |            | | HTTP    |                  |
| | Transport  +--> | Sandbox | +------> | | Snappy     | +-------> | 1. Create ticket |
| | (e.g. SMS) |    | App     | | POST   | | Bouncer    | | POST    |                  |
| |            |    |         | |        | |            | |         |                  |
| |            |    +---------+ |        | | 1. Store   | |         | 2. Ticket        |
| |            |                |        | | 2. Forward | |         |    response      |
| |            |    +---------+ |        | | 3. Listen  | |         |                  |
| |            |    | Vumi    | |   HTTP | | 4. Respond | |         |                  |
| |            | <--+ HTTP    | | <------+ |            | | <-------+ 3. Hook fires    |
| |            |    | API     | |   POST | +------------+ | Webhook |                  |
| |            |    |         | |        |                |         |                  |
| +------------+    +---------+ |        |                |         |                  |
|                               |        |                |         |                  |
+-------------------------------+        +----------------+         +------------------+

Configuration

The following configuration (with dummy values replaced by real ones) needs to be added to settings.py to configure this app:

SNAPPY_API_KEY = 'keyfromsettings'
SNAPPY_BASE_URL = 'https://app.besnappy.com/api/v1'
SNAPPY_EMAIL = 'sharedmailbox@example.com'
SNAPPY_EXTRAS = ["extra1", "extra2"]
SNAPPY_MAILBOX_ID = 0
SNAPPY_STAFF_ID = 0
VUMI_GO_ACCOUNT_KEY = "key"
VUMI_GO_CONVERSATION_TOKEN = "token"
VUMI_GO_API_TOKEN = "token"
VUMI_GO_API_URL = "http://go.vumi.org/api/v1/go"
VUMI_GO_BASE_URL = VUMI_GO_API_URL + "/http_api_nostream"
VUMI_GO_CONVERSATION_KEY = "convokey"

Metadata

Release files for django-snappy-vumi-bouncer 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-snappy-vumi-bouncer 0.2.0
File Size Uploaded
django-snappy-vumi-bouncer-0.2.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-snappy-vumi-bouncer 0.2.0
File Interpreter ABI Platform
django_snappy_vumi_bouncer-0.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 23.0 kB

Release files / django-snappy-vumi-bouncer-0.2.0.tar.gz

Download URL django-snappy-vumi-bouncer-0.2.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
53c8b948e70e15f6e7ed022750e2ac12939227533038f22f89f7f2a481eb5d8f
BLAKE2b-256 checksum
How to use checksums
0f7d517413a244f954c513659efd247d4e313ec140ade2af81d736c9c31c1f17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_snappy_vumi_bouncer-0.2.0-py2-none-any.whl

Download URL django_snappy_vumi_bouncer-0.2.0-py2-none-any.whl
Size 14.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
87762642b35e36c75d01592488a25ec0793b8154f0c0f4f29d3e42a20b5ed904
BLAKE2b-256 checksum
How to use checksums
ff1335b999434b069ca4f9763e3e5c7e8f2aad67e5257881a3a90ed76b8ce997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page