Package for working with Network APIs that require Oauth2 in Python.
Maintained. Last release over 2 years ago, commits in 7 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install vonage-network-authVonage Network API Authentication Client
This package (vonage-network-auth) provides a client for authenticating Network APIs that require Oauth2 authentication. Using it, it is possible to generate authenticated JWTs for use with Vonage Network APIs, e.g. Sim Swap, Number Verification.
This package is intended to be used as part of the vonage SDK package, accessing required methods through the SDK instead of directly. 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.
Installation
Install from the Python Package Index with pip:
pip install vonage-network-auth
Usage
Create a NetworkAuth Object
from vonage_network_auth import NetworkAuth
from vonage_http_client import HttpClient, Auth
network_auth = NetworkAuth(HttpClient(Auth(application_id='application-id', private_key='private-key')))