Skip to main content

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


Download files

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

Source Distribution

vonage_network_sim_swap-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

vonage_network_sim_swap-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file vonage_network_sim_swap-1.0.0.tar.gz.

File metadata

File hashes

Hashes for vonage_network_sim_swap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 29d43557d9ab772a639c3f01129d649f2c59d4bf2b52c9bdb0463e5d2379a077
MD5 2b614886c62d3318aeb3cbaf300b9bb4
BLAKE2b-256 bc19664252cccd222b9f0c7bda5830b0695aa5f2807bdb2d934ffcd47da25888

See more details on using hashes here.

File details

Details for the file vonage_network_sim_swap-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vonage_network_sim_swap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d4ffb5d16ca94d3e08f6d9875d313e6fa040c6a0b851926c3026ce8111e891b
MD5 0fb926466d0d9bb8ee52924a51c0d3b1
BLAKE2b-256 3df6a1fcb30f840a4541b5aaf8e1151b21e6d5089db07f37cd51c8660116f3c1

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