Metadata-Version: 2.1
Name: django-sms-uz
Version: 1.0.1
Summary: SMS sending api for django
Home-page: https://github.com/firdavsDev
Author: Boltayev Davronbek
Author-email: tarjimatv1@gmail.com
Maintainer: Boburbek
Maintainer-email: boburbek@gmail.com
License: MIT
Keywords: sms,django,api,sending,sending api,sending sms,sending sms api,sending sms api django,sending sms api django
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/x-rst
License-File: LICENSE

===============================
Django send SMS using API(uz)
===============================

Quick start
------------
1. Create a new project
2. pip install django-sms-uz==1.0.0, pip install djangorestframework and pip install requests
3. Add the following to your settings.py file: INSTALLED_APPS = ( ... 'SMS', ... ) SMS_SETTINGS = {"SMS_URL": "http://91.204.239.44/broker-api/send","SMS_LOGIN": "LOGIN","SMS_PASSWORD": "PASSWORD"} set in your settings.py file
4. Add the following to your urls.py file:
    path('sms/', include('SMS.urls')),
5. Run ``python manage.py migrate`` to create the database tables
6. Start your Django development server ``python manage.py runserver`` and go to http://localhost:8000/sms/send_sms/
7. Enter your phone number and message and click send
8. Check your terminal for a response and Django admin will tell you if it was successful or not
9. You could use call ``from SMS.sms_utils import SMS_Sender`` to get the SMS class and send sms using by the way ``SMS_Sender(phone_number, message).SendSmsOneContact()`` it returns a response
10. Don't forget to add ``SMS`` to your INSTALLED_APPS list and add SMS_SETTINGS = {"SMS_URL": "http://91.204.239.44/broker-api/send","SMS_LOGIN": "LOGIN","SMS_PASSWORD": "PASSWORD"} set in your settings.py file
