Vonage legacy verify package
Project description
Vonage Legacy Verify Package
This package contains the code to use Vonage's legacy 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 API, which is recommended for most use cases. The newer API lets you send messages via multiple channels, including Email, SMS, MMS, WhatsApp, Messenger and others. You can also make Silent Authentication requests with the new Verify package 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_legacy import VerifyRequest
params = {'number': '1234567890', 'brand': 'Acme Inc.'}
request = VerifyRequest(**params)
response = vonage_client.verify_legacy.start_verification(request)
Make a PSD2 (Payment Services Directive v2) Request
from vonage_verify_legacy import Psd2Request
params = {'number': '1234567890', 'payee': 'Acme Inc.', 'amount': 99.99}
request = VerifyRequest(**params)
response = vonage_client.verify_legacy.start_verification(request)
Check a Verification Code
vonage_client.verify_legacy.check_code(request_id='my_request_id', code='1234')
Search Verification Requests
# Search for single request
response = vonage_client.verify_legacy.search('my_request_id')
# Search for multiple requests
response = vonage_client.verify_legacy.search(['my_request_id_1', 'my_request_id_2'])
Cancel a Verification
response = vonage_client.verify_legacy.cancel_verification('my_request_id')
Trigger the Next Workflow Event
response = vonage_client.verify_legacy.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_legacy.request_network_unblock('23410')
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
File details
Details for the file vonage_verify_legacy-1.0.0.tar.gz
.
File metadata
- Download URL: vonage_verify_legacy-1.0.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62af73848cda503c64456f4e8957ca6d1ed34d875302017d25ec019932f79fb2 |
|
MD5 | 5d1c39535d7d1e8cd7ff24d9e734394e |
|
BLAKE2b-256 | 9d4f6ce1fc365c63ff369a57b0ac789c4a3b4d1829388713738ee6e73cd1c3ef |
File details
Details for the file vonage_verify_legacy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: vonage_verify_legacy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f17913826eca736ce5f90def3f98b5f1e2d7ed625cdee7f3bf175bb08576118 |
|
MD5 | 6f3c89f2077568a48e8e12eff7c51d11 |
|
BLAKE2b-256 | 010abbba7463b702c678a9b089b7b7a94dfdf673b7eddcdefb1a427cd03f0b4b |