Skip to main content

SMS gateway for sending text messages

Project description

README
------

How to install:

* Add 'smsgateway' to your INSTALLED_APPS
* Configure it:

# settings.py

# This is where your incoming messages will be handled by your web app.
SMSGATEWAY_HOOK = {'MV': 'mvne.activation.utils.incoming_sms',
'SIM': 'mvne.activation.utils.incoming_sms'}

# This is a list of accounts of SMS gateway providers.
SMSGATEWAY_ACCOUNTS = {
'__default__': 'mobileweb', # This is your default account. You MUST specify this! It points to one of your accounts below this line.
'mobileweb': {'backend': 'mobileweb', 'username': 'johndoe', 'password': '12345678', 'sid': '413'}, # Example account
'smsextrapro': {'backend': 'smsextrapro', 'username': 'johndoe', 'password': '87654321'}, # Example account
}

# This is where you set up the backends in use. You can use your own too! Please look at the built-in backends for an example.
SMSGATEWAY_BACKENDS = (
'smsgateway.backends.mobileweb.MobileWebBackend',
'smsgateway.backends.smsextrapro.SmsExtraProBackend',
)

* Some backends support incoming text messages:

# urls.py

from smsgateway import backends

urlpatterns = ('',
(r'^incoming_sms/$', backends.get_backend('mobileweb').handle_incoming),
)

* Set up your SMS gateway to use this url for incoming messages.

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-smsgateway-2.1.11.tar.gz (91.0 kB view details)

Uploaded Source

Built Distribution

django_smsgateway-2.1.11-py2.py3-none-any.whl (140.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-smsgateway-2.1.11.tar.gz.

File metadata

File hashes

Hashes for django-smsgateway-2.1.11.tar.gz
Algorithm Hash digest
SHA256 c326ff954ef9d347e094e20e648725465e53ca6297c0e3a5107d5cd60e6be4ee
MD5 8b525e4b087aa852e29fbb926871d077
BLAKE2b-256 f9fc82eed779f59624b850be029a26dea4a8fa3cf181ebc365bd470b962ab5bb

See more details on using hashes here.

File details

Details for the file django_smsgateway-2.1.11-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_smsgateway-2.1.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 af3aaf0704a55df50fbb98c5d37a8bdc15625c9c4f52687536d1be7ef4e5c5fa
MD5 6a6d31fea25ca6c4e9d82e6450830c2c
BLAKE2b-256 f5fbdbbcff86873778f95fae1da93b7251babee82021dbf2cab39f9d3ad994d2

See more details on using hashes here.

Supported by

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