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.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

vonage_network_sim_swap-1.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for vonage_network_sim_swap-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7ae4d3ff4c21528af9a73d61d21bccb9b048478b2b56500fa8dd8ec02b8258cd
MD5 7eae5ab8da0c506a00277f6f686b699b
BLAKE2b-256 16076504ea9d848a29775588ea97b7c7bc654c52d287710ece2d6144785bef34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vonage_network_sim_swap-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d0c459a4c28b3715ed22f7008e1f4661d2eb06751ecb7fc5cf6dfca0aefea8e
MD5 db88927ca4bcf64bc8fc100e3e607a1c
BLAKE2b-256 ecae12074b88864a6ffad3b6baa213279631b126c7cef688790752ee39e48b7e

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