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.20.tar.gz (62.2 kB view details)

Uploaded Source

Built Distribution

django_smsgateway-2.1.20-py2.py3-none-any.whl (99.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-smsgateway-2.1.20.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for django-smsgateway-2.1.20.tar.gz
Algorithm Hash digest
SHA256 386152feda2420480770c9d64dd2e3bbc8fa7aa651484dfdfb310c0c6036efed
MD5 42ba5c9897d7725a094511ee658bfd22
BLAKE2b-256 f148b871b84bbfdd6cdde6bf2b8d687a85a92303ae23be5e5d1c0a5963f3346c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_smsgateway-2.1.20-py2.py3-none-any.whl
  • Upload date:
  • Size: 99.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for django_smsgateway-2.1.20-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5892a95cbacf599e233ad9e440725b11f2e64118b73217cb6fc3515dfc54aa7e
MD5 5ac428ced8edb529e2fa394732a8738e
BLAKE2b-256 d4c5a38c4c2632b799f4d3b8172d2cc8d55a53b634092711fb9517480126c60a

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