Skip to main content

A RESTful API for managing messaging content, subscriptions and sending via Vumi-go

Project description

A RESTful API for managing messaging content, subscriptions and sending via Vumi-go

$ virtualenv ve
$ source ve/bin/activate
(ve)$ pip install -r requirements.txt
(ve)$ pip install -r requirements-dev.txt
(ve)$ py.test --ds=testsettings subscription/tests.py --cov=subscription

Configuration

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

INSTALLED_APPS = [
    # Usual Django stuff plus
    # Third-party apps
    'south',
    'tastypie',
    'djcelery',
    # Us
    'subscription'
]

VUMI_GO_ACCOUNT_KEY = "replaceme"
VUMI_GO_CONVERSATION_KEY = "replaceme"
VUMI_GO_ACCOUNT_TOKEN = "replaceme"

CELERY_ACCEPT_CONTENT = ['pickle']
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_RESULT_SERIALIZER = 'pickle'
CELERY_ALWAYS_EAGER = DEBUG
SUBSCRIPTION_SEND_INITIAL_DELAYED = 1800 # optional delay in seconds
SUBSCRIPTION_MULTIPART_BOUNDARY = "-------"

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

django-messaging-subscription-0.5.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-messaging-subscription-0.5.0.tar.gz.

File metadata

File hashes

Hashes for django-messaging-subscription-0.5.0.tar.gz
Algorithm Hash digest
SHA256 87e9cfd51f49fa2d1a43ec605c2f1245e16bfcc1a1afe5aaeef99a08e08d3e25
MD5 c2e3cd8acb117a7fc11bbe5150a770f2
BLAKE2b-256 bac287c33b7f7bb906456ed55a924f207a4041a4f4d6833e9b34c31297506ce3

See more details on using hashes here.

Provenance

File details

Details for the file django_messaging_subscription-0.5.0-py2-none-any.whl.

File metadata

File hashes

Hashes for django_messaging_subscription-0.5.0-py2-none-any.whl
Algorithm Hash digest
SHA256 24ed46e815ad069103bbb5f6226ed21e5b299ca96bfda5b1fff02f4fb33bf446
MD5 3153dcfc65b3f6cb0570376021b3d6c8
BLAKE2b-256 84a519bf71eb1ff0a756e74b9a44f41bc4347f6cd2298e32a4c8498b100407ad

See more details on using hashes here.

Provenance

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