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.

Please note this package is in beta.

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-network package. The examples below assume you've created an instance of the vonage_network.VonageNetwork class called network_client.

Check if a SIM Has Been Swapped

from vonage_network_sim_swap import SwapStatus
swap_status: SwapStatus = vonage_network.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_network.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-0.1.1b0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file vonage_network_sim_swap-0.1.1b0.tar.gz.

File metadata

File hashes

Hashes for vonage_network_sim_swap-0.1.1b0.tar.gz
Algorithm Hash digest
SHA256 72ebc733819a77e2c39479c64cbc5dacedfc49534b06cc510eb7db0b6c2f73d4
MD5 24f6a2f8080e51612860d2fc07e8c3ff
BLAKE2b-256 da4054901eb37864c896e54a8061a5da126fdd65484b4053256dbc4c8d835d57

See more details on using hashes here.

File details

Details for the file vonage_network_sim_swap-0.1.1b0-py3-none-any.whl.

File metadata

File hashes

Hashes for vonage_network_sim_swap-0.1.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 04a9db682642ac4068c58b2ac466e0408223c78a2bedf0586e6ca3a8055eb12a
MD5 094c222391885e9a17e11fc87124f7dc
BLAKE2b-256 33d33130cab38228bdf2b60dc60869c61e0a4384ef7d1b49007d0e632bf2c20c

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