Skip to main content

A Django app for telecom system.

Project description

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

  1. Add “telecom” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'telecom',
    
    ]
  2. 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'
  3. Include the telecom URLconf in your project urls.py like this::

    path(‘telecom/’, include(‘telecom.urls’), name=’telecom’),

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

    {

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

    }

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

    {

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

    }

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

    {

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

    }

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_message-1.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file django-message-1.3.tar.gz.

File metadata

  • Download URL: django-message-1.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for django-message-1.3.tar.gz
Algorithm Hash digest
SHA256 e985e7bf10cadd1610e5b234da43772e4d99e7670e87598ad2f4e2518433978d
MD5 6d74312efaab0d8eaef2dee5352c3274
BLAKE2b-256 102905ca6bf89b8b275744c24bde968ed7e8cacabd5fdfc90e5973ac3bd68bdd

See more details on using hashes here.

File details

Details for the file django_message-1.3-py3-none-any.whl.

File metadata

  • Download URL: django_message-1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for django_message-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b7d7ca2389ac706c621722d254080126c438401db2a9843e9ad8c526b7a3944a
MD5 22f88db5f2c5f8e89335828caa3f4a73
BLAKE2b-256 9e5e8329e48f552241b834e97fcae047ae21b7f49d9769ec972d42d3664181ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page