{"id":49885675,"url":"https://github.com/mustafaakgul/drf-verification-app","last_synced_at":"2026-05-15T18:13:23.726Z","repository":{"id":232388011,"uuid":"672649358","full_name":"mustafaakgul/drf-verification-app","owner":"mustafaakgul","description":"Example Django REST Framework app demonstrating user verification workflows","archived":false,"fork":false,"pushed_at":"2024-04-09T12:13:35.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-11T22:43:47.199Z","etag":null,"topics":["authentication","python","verification"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mustafaakgul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-30T19:45:39.000Z","updated_at":"2024-04-09T12:03:21.000Z","dependencies_parsed_at":"2024-04-09T16:29:55.718Z","dependency_job_id":null,"html_url":"https://github.com/mustafaakgul/drf-verification-app","commit_stats":null,"previous_names":["mustafaakgul/drf-verification-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mustafaakgul/drf-verification-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaakgul%2Fdrf-verification-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaakgul%2Fdrf-verification-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaakgul%2Fdrf-verification-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaakgul%2Fdrf-verification-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustafaakgul","download_url":"https://codeload.github.com/mustafaakgul/drf-verification-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaakgul%2Fdrf-verification-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","python","verification"],"created_at":"2026-05-15T18:13:22.914Z","updated_at":"2026-05-15T18:13:23.721Z","avatar_url":"https://github.com/mustafaakgul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Phone Verification Demo\n=======================\nRead the [blog Post](https://medium.com/@EphraimBuddy/building-a-real-world-phone-verification-api-endpoints-with-django-rest-framework-839c5e8ffb0b)\n\nA phone number verification API tutorial\n\nThis app is to demonstrate how to create API endpoints for phone number verifications using Twilio SMS and pyotp in Django rest framework\n\nTo run this app on your system. Do the following:\n\n### How to Run the app\n\n```git clone https://github.com/ephraimbuddy/verify.git```\n\nChange directory into the app:\n\n```cd verify```\n\nCreate a new virtual environment\n\n```python -m venv env```\n\nActivate the environment\n\n```source env/bin/activate``` On windows: ```source env\\Scripts\\activate```\n\nNow install the necessary dependencies:\n\n```pip install django djangorestframework twilio pyotp python-decouple```\n\nUpdate the settings file:\nFirst you need to signup with twilio to get your accound sd, token and phone number. After you get those things.\nCreate a `.env` file at the root of this app and add the twilio settings below:\n\n    TWILIO_PHONE = your twilio phone number\n    TWILIO_ACCOUNT_SID = your twilio account sid\n    TWILIO_AUTH_TOKEN = your twilio auth token\n\nAfter installation, run the migration:\n\n```python manage.py makemigrations```\n```python manage.py migrate```\n\nCreate super user:\n\n```python manage.py createsuperuser```\n\nRun the App:\n```python manage.py runserver```\n\n### Endpoints:\n\n    ^users/$ [name='user-list']\n    ^users/(?P\u003cpk\u003e[^/.]+)/$ [name='user-detail']\n    send_sms_code/\n    verify_phone/\u003cint:sms_code\u003e\n    ^phones/$ [name='phonenumber-list']\n    ^phones/(?P\u003cpk\u003e[^/.]+)/$ [name='phonenumber-detail']\n    api-auth/\n    \nNavigate to `http://127.0.0.1:8000/users/`.\nLogin and update the phone number. After you have saved it, head to `http://127.0.0.1:8000/send_sms_code/` and an sms will be sent to your phone. Use the code sent to form the verify_phone url: `http://127.0.0.1:8000/verfiy_phone/your_code_here`.\n\n###The end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafaakgul%2Fdrf-verification-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustafaakgul%2Fdrf-verification-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafaakgul%2Fdrf-verification-app/lists"}