Skip to main content

Package for working with Network APIs that require Oauth2 in Python.

Project description

Vonage Network API Authentication Client

This package (vonage-network-auth) provides a client for authenticating Network APIs that require Oauth2 authentcation. Using it, it is possible to generate authenticated JWTs for use with GNP APIs, e.g. Sim Swap, Number Verification.

This package is intended to be used as part of an SDK, 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.

Please note this package is in beta.

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')))

Generate an Authenticated Access Token

token = network_auth.get_oauth2_user_token(
    number='447700900000', scope='dpv:FraudPreventionAndDetection#check-sim-swap'
)

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_auth-0.1.0b0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

vonage_network_auth-0.1.0b0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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