Coder Social home page Coder Social logo

django-truecaller's Introduction

DJANGO TRUECALLER

Steps to run the API

Install dependencies

pip3 install requirements.txt

Runserver

python3 manage.py runserver

Test the API

Route: http://localhost:8000/signup/
Request Type: POST
Data: 

    {
        "username":"werdtyuejhv",
        "email":"[email protected]",
        "password":"qwertyuiop",
        "phone":"77778787887"
    }
Route: http://localhost:8000/login/
Request Type: POST
Data: 

    {
        "username":"werdtyuejhv",
        "password":"qwertyuiop"
    }

JWT AUTH

You will receive a JWT Auth Token after signUp and signIn. Include the JWT token in headers as a Bearer Token for all private requests

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhbmt1ciJ9.eQicFQy2nYric9Gl2mhqOH4l8An7B_Kf2CKoJmZrPcA

To view all the contacts

Public Route: http://localhost:8000/contact/
Request Type: GET

To mark a contact as SPAM

Private Route: http://localhost:8000/spam/
Request Type: POST
Data:
    {
        "phone": "9988689898"
    }

To search a contact by name

Private Route: http://localhost:8000/search_name?name=Ankur
Request Type: GET

To search a contact by phone

Private Route: http://localhost:8000/search_phone?phone=8887655679
Request Type: GET

django-truecaller's People

Contributors

ankurnarkhede avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.