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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vonage_network_sim_swap-1.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.4

File hashes

Hashes for vonage_network_sim_swap-1.1.2.tar.gz
Algorithm Hash digest
SHA256 18aa004fc36b015e151b68e3830647295924ff37d3bfd923801dc2fe74b5d1c0
MD5 3da8e977ddfcdd5fe633258c2f79d6ba
BLAKE2b-256 4850c11fbcd674fb38cf9857e19a7a9785cceda65670db799ae67227f9386ca6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vonage_network_sim_swap-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e75e8ec2d8cb9d3f2d18acdc8540d57c340b38b8a85c1b129e7860ec3ad7b3a1
MD5 27a1abfa66a38149b3415e8c6f4d4972
BLAKE2b-256 fbf2b192af4717ba11128853eac17333ec2813274ce250cc0cfaecfbdee9e7fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page