Package for working with the Vonage Sim Swap Network API.
Project description
Vonage Sim Swap Network API Client
This package (vonage-network-sim-swap
) allows you to check whether a SIM card has been swapped, and the last swap date.
This package is not intended to be used directly, instead being accessed from an enclosing SDK package. Thus, it doesn't require manual installation or configuration unless you're using this package independently of an SDK.
For full API documentation, refer to the Vonage developer documentation.
Registering to Use the Sim Swap API
To use this API, you must first create and register your business profile with the Vonage Network Registry. This documentation page explains how this can be done. You need to obtain approval for each network and region you want to use the APIs in.
Installation
Install from the Python Package Index with pip:
pip install vonage-network-sim-swap
Usage
It is recommended to use this as part of the vonage
package. The examples below assume you've created an instance of the vonage.Vonage
class called vonage_client
.
Check if a SIM Has Been Swapped
from vonage_network_sim_swap import SwapStatus
swap_status: SwapStatus = vonage_client.sim_swap.check(phone_number='MY_NUMBER')
print(swap_status.swapped)
Get the Date of the Last SIM Swap
from vonage_network_sim_swap import LastSwapDate
swap_date: LastSwapDate = vonage_client.sim_swap.get_last_swap_date
print(swap_date.last_swap_date)
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_network_sim_swap-1.0.0.tar.gz
.
File metadata
- Download URL: vonage_network_sim_swap-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d43557d9ab772a639c3f01129d649f2c59d4bf2b52c9bdb0463e5d2379a077 |
|
MD5 | 2b614886c62d3318aeb3cbaf300b9bb4 |
|
BLAKE2b-256 | bc19664252cccd222b9f0c7bda5830b0695aa5f2807bdb2d934ffcd47da25888 |
File details
Details for the file vonage_network_sim_swap-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: vonage_network_sim_swap-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | 2d4ffb5d16ca94d3e08f6d9875d313e6fa040c6a0b851926c3026ce8111e891b |
|
MD5 | 0fb926466d0d9bb8ee52924a51c0d3b1 |
|
BLAKE2b-256 | 3df6a1fcb30f840a4541b5aaf8e1151b21e6d5089db07f37cd51c8660116f3c1 |