Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veriflo-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

veriflo-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for veriflo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 80fd9068b6cd378c5d175da40f4389f893364def23834d173914b96192800d83
MD5 b1a6aee2209851a370fa1b7bba29976d
BLAKE2b-256 596bd2674917b550f4d0188998b1112978104344da259f1458767739788f57cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for veriflo-1.0.0.tar.gz:

Publisher: pypi-publish.yml on Mohan-madhu/Veriflo-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for veriflo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec76494de141ae2b55fe2450712683be28000a8c0d59036af3bfcce7e3798bc0
MD5 042d52c39564bbf303dfa00ee0117f86
BLAKE2b-256 4d0d450c703dce2f3dcd1051659e23ff9a4d0f0a5a255d18f544ddda96a5ca3e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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