Django Message 1.3 | Coderz Repository

django-message 1.3

Last updated:

0 purchases

django-message 1.3 Image
django-message 1.3 Images

Free

Languages

Categories

Add to Cart

Description:

djangomessage 1.3

This is a Django app used in REST APIs to send SMS and OTP on the user’s mobile
number and verify the number using OTP entered by the user. This app is using TWILIO
service to send SMS, So before using this app make sure you have TWILIO account.
You can refer to this link to know more about TWILIO.
https://www.twilio.com/docs/sms/quickstart/python _

Quick start

Add “telecom” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'telecom',

]

Add these attribute to your setting like this:
TWILIO_ACCOUNT_SID = 'set your ACCOUNT_SID'
TWILIO_SERVICE_SID = 'set your SERVICE_SID'
TWILIO_AUTH_TOKEN = 'set your AUTH_TOKEN'
TWILIO_PHONE_NUMBER = 'set your PHONE_NUMBER'


Include the telecom URLconf in your project urls.py like this::
path(‘telecom/’, include(‘telecom.urls’), name=’telecom’),




Send POST request http://127.0.0.1:8000/telecom/send-otp/ to send otp on user mobile::
{

“telecom”: “mobile number” .. +919134454343
“channel”: “sms”

}




Send POST request http://127.0.0.1:8000/telecom/verify-otp/ to verify OTP::
{

“telecom”: “mobile number” .. +9134454343
“code”: “code” .. 343433

}




Send POST request http://127.0.0.1:8000/telecom/send-sms/ to send sms::
{

“telecom”: “mobile number” .. +919134454343
“body”: “message” .. Hi Zen!

}

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.