A Django app for telecom system.
Project description
Message is a Django app that is used in REST APIs to send OTP on user mobile number and verify the OTP entered by user.
Quick start
Add “telecom” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'telecom', ]
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” #+9134454343 “channel”: “sms”
}
- Send POST request http://127.0.0.1:8000/telecom/verify-otp/ to verify OTP::
{
“telecom”: “mobile number” #+9134454343 “code”: “code” #343433
}
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-message-1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for django_message-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 967580c84aa0e8ea104f8ccfb37aac4b8985a741d5d23a0dc0c33d67c4c7540f |
|
MD5 | f6be75c039fe7b469f7d72c2dfa0a7ab |
|
BLAKE2b-256 | 7fd87a4fb40413a4a331ebe058c0b28fba5a77aa7e05a7bd3f7628cd4ae65a30 |