Metadata-Version: 2.0
Name: django-smsgateway
Version: 2.1.7
Summary: SMS gateway for sending text messages
Home-page: https://github.com/vikingco/smsgateway
Author: Unleashed NV
Author-email: operations@unleashed.be
License: BSD
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Requires-Dist: Django (>=1.9.7)
Requires-Dist: amqp (>=2.1.1)
Requires-Dist: billiard (>=3.5.0.2)
Requires-Dist: celery (>=4.0.0)
Requires-Dist: django-db-locking
Requires-Dist: django-statsd-mozilla
Requires-Dist: kombu (>=4.0.0)
Requires-Dist: phonenumberslite (==7.3.2)
Requires-Dist: pytz (>=2016.7)
Requires-Dist: redis (>=2.10.5)
Requires-Dist: statsd (>=2.1.2)
Requires-Dist: vine (>=1.1.3)

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.

