Python Server SDK for using Vonage Network APIs
Project description
Vonage Network API Python SDK
The Vonage Network API Python SDK Package vonage-network provides a streamlined interface for using Vonage APIs in Python projects. This package includes the VonageNetwork class, which simplifies API interactions.
The VonageNetwork class in this package serves as an entry point for using Vonage Network APIs. It abstracts away complexities with authentication, HTTP requests and more.
For full API documentation refer to the Vonage Developer documentation.
Please note this package is in beta and could be subject to change or removal.
Installation
Install the package using pip:
pip install vonage-network
Usage
from vonage_network import VonageNetwork, Auth, HttpClientOptions
# Create an Auth instance
auth = Auth(api_key='your_api_key', api_secret='your_api_secret')
# Create HttpClientOptions instance
# (not required unless you want to change options from the defaults)
options = HttpClientOptions(api_host='api.nexmo.com', timeout=30)
# Create a Vonage network client instance
vonage_network = VonageNetwork(auth=auth, http_client_options=options)
The VonageNetwork class provides access to various Vonage Network APIs through its properties. For example, to call the Network Sim Swap API:
from vonage_network_sim_swap import SwapStatus
swap_status: SwapStatus = vonage_network.sim_swap.check(phone_number='MY_NUMBER')
print(swap_status.swapped)
You can also access the underlying HttpClient instance through the http_client property:
user_agent = vonage_network.http_client.user_agent
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vonage_network-0.1.1b0.tar.gz.
File metadata
- Download URL: vonage_network-0.1.1b0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74573e1f7820c1ef7d6a4efa47960c4fdbad7dee14c77e618f4af2ef9f544ace
|
|
| MD5 |
1d72265b8b67cb8c9f3ba755b4d61fd3
|
|
| BLAKE2b-256 |
7922825abe1f700b1b373cd5b8ad6892ee1aa595a09cd5ccafc7205a08838222
|
File details
Details for the file vonage_network-0.1.1b0-py3-none-any.whl.
File metadata
- Download URL: vonage_network-0.1.1b0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2e9a2e44081ccddf56361dfe2c5eb9b497d017ba704275fee488bb971d6efda
|
|
| MD5 |
8d083f888cb58633419b7783ca29493f
|
|
| BLAKE2b-256 |
a4e27625c65e9ce4b7948e7574255571351201bb83a04bfcf9c33146e26362de
|