Skip to main content

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

Reason this release was yanked:

Superseded by inclusion in `vonage` package

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.1b0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

vonage_network_auth-0.1.1b0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vonage_network_auth-0.1.1b0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.4

File hashes

Hashes for vonage_network_auth-0.1.1b0.tar.gz
Algorithm Hash digest
SHA256 f47ff30346e0b7dd5986aad755e5b8aed8f3fd4d3eb6cd56f724a4fd681bde1c
MD5 1d315494a28b001b1c80354fb4198f08
BLAKE2b-256 64889b38aa6c67dee375f9d79bfa75496d3a62467e216a56563b0550c9927680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vonage_network_auth-0.1.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cda2355bc25d27a7f12a6630ad10dad95e7e6755fdc25b048ac8d24295cc128
MD5 2f04916ecfb231120c8e0f726c5b59bf
BLAKE2b-256 16ec6c3d0dbab8ae45f0bd5249fadae70568976593f260e597d75452897cf4fc

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