Skip to main content

Vonage verify package

Project description

Vonage Verify Package

This package contains the code to use Vonage's Verify API in Python. This package includes methods for working with 2-factor authentication (2FA) messages sent via SMS or TTS.

Note: There is a more current package available: Vonage's Verify v2 API which is recommended for most use cases. The v2 API lets you send messages via multiple channels, including Email, SMS, MMS, WhatsApp, Messenger and others. You can also make Silent Authentication requests with Verify v2 to give an end user a more seamless experience.

Usage

It is recommended to use this as part of the main vonage package. The examples below assume you've created an instance of the vonage.Vonage class called vonage_client.

Make a Verify Request

from vonage_verify import VerifyRequest
params = {'number': '1234567890', 'brand': 'Acme Inc.'}
request = VerifyRequest(**params)
response = vonage_client.verify.start_verification(request)

Make a PSD2 (Payment Services Directive v2) Request

from vonage_verify import Psd2Request
params = {'number': '1234567890', 'payee': 'Acme Inc.', 'amount': 99.99}
request = VerifyRequest(**params)
response = vonage_client.verify.start_verification(request)

Check a Verification Code

vonage_client.verify.check_code(request_id='my_request_id', code='1234')

Search Verification Requests

# Search for single request
response = vonage_client.verify.search('my_request_id')

# Search for multiple requests
response = vonage_client.verify.search(['my_request_id_1', 'my_request_id_2'])

Cancel a Verification

response = vonage_client.verify.cancel_verification('my_request_id')

Trigger the Next Workflow Event

response = vonage_client.verify.trigger_next_event('my_request_id')

Request a Network Unblock

Note: Network Unblock is switched off by default. Contact Sales to enable the Network Unblock API for your account.

response = vonage_client.verify.request_network_unblock('23410')

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

vonage_verify-1.1.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

vonage_verify-1.1.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file vonage_verify-1.1.2.tar.gz.

File metadata

  • Download URL: vonage_verify-1.1.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.4

File hashes

Hashes for vonage_verify-1.1.2.tar.gz
Algorithm Hash digest
SHA256 261d6966e3be1d1f928a1e91c6f252e05a48fc284051ff3c77332d2cca0cda56
MD5 a78f3f133255ba62612165d731a865d0
BLAKE2b-256 ad3f4e525382f36d8d522eab4ba0dfe569dab6520b7730eb8c3339e17cc2ac98

See more details on using hashes here.

File details

Details for the file vonage_verify-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vonage_verify-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af5384a79a84f9ed3abe8029911d4db399d5b828b7bb85e761df8c982fbfd9cd
MD5 a191b8bd45a9933f8e921708b04fbc69
BLAKE2b-256 5c292feec2cba8397fee5b36cffc57f7bd71f6336798678714ec967b5e1c9873

See more details on using hashes here.

Supported by

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