Official Python SDK for Veriflo WhatsApp OTP API
Project description
veriflo
Official Python SDK for Veriflo WhatsApp OTP API.
Install
pip install veriflo
Quick Start
import os
from veriflo import VerifloClient
client = VerifloClient(os.environ["VERIFLO_API_KEY"])
sent = client.send_otp("+919999999999")
print(sent.get("request_id"))
verified = client.verify_otp(sent["request_id"], "123456")
print(verified.get("verified"))
API
VerifloClient(api_key, timeout=10, base_url="https://api.veriflo.app/v1")send_otp(phone, otp=None, integration_test=False, test_mode=False)resend_otp(request_id, otp=None, integration_test=False, test_mode=False)verify_otp(request_id, otp)verify_otp_locally(expected_otp, received_otp)
Notes
- Keep API keys in server-side environment variables.
- Do not expose your API key in browser/mobile client code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file veriflo-1.0.0.tar.gz.
File metadata
- Download URL: veriflo-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80fd9068b6cd378c5d175da40f4389f893364def23834d173914b96192800d83
|
|
| MD5 |
b1a6aee2209851a370fa1b7bba29976d
|
|
| BLAKE2b-256 |
596bd2674917b550f4d0188998b1112978104344da259f1458767739788f57cc
|
Provenance
The following attestation bundles were made for veriflo-1.0.0.tar.gz:
Publisher:
pypi-publish.yml on Mohan-madhu/Veriflo-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veriflo-1.0.0.tar.gz -
Subject digest:
80fd9068b6cd378c5d175da40f4389f893364def23834d173914b96192800d83 - Sigstore transparency entry: 1154532756
- Sigstore integration time:
-
Permalink:
Mohan-madhu/Veriflo-Python@7b7dae331c57d6f6d690371081eb715de7f705c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Mohan-madhu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7b7dae331c57d6f6d690371081eb715de7f705c2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file veriflo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: veriflo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec76494de141ae2b55fe2450712683be28000a8c0d59036af3bfcce7e3798bc0
|
|
| MD5 |
042d52c39564bbf303dfa00ee0117f86
|
|
| BLAKE2b-256 |
4d0d450c703dce2f3dcd1051659e23ff9a4d0f0a5a255d18f544ddda96a5ca3e
|
Provenance
The following attestation bundles were made for veriflo-1.0.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on Mohan-madhu/Veriflo-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veriflo-1.0.0-py3-none-any.whl -
Subject digest:
ec76494de141ae2b55fe2450712683be28000a8c0d59036af3bfcce7e3798bc0 - Sigstore transparency entry: 1154532758
- Sigstore integration time:
-
Permalink:
Mohan-madhu/Veriflo-Python@7b7dae331c57d6f6d690371081eb715de7f705c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Mohan-madhu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7b7dae331c57d6f6d690371081eb715de7f705c2 -
Trigger Event:
workflow_dispatch
-
Statement type: