Skip to main content

Use the Verizon API for connectivity management, device diagnostics, device location, edge discovery service, edge performance, software management and much more.

Project description

Getting Started with Verizon

Introduction

"The Connection Planner is a service that provides devices windows to connect to their backend APIs. The service validates device access permissions and processes valid devices asynchronously. For each batch, it retrieves device connectivity windows from the RAN KPI Data Application, and sends callbacks back to customers via UWS-Callback for both successful and failed device requests."

Best Practices for Callbacks: https://thingspace.verizon.com/documentation/apis/connectivity-management/working-with-verizon/about-callback-services/best-practices.html

Install the Package

The package is compatible with Python versions 3.7+. Install the package from PyPi using the following pip command:

pip install sdksio-verizon-apis-sdk==2.0.0

You can also view the package at: https://pypi.python.org/pypi/sdksio-verizon-apis-sdk/2.0.0

Initialize the API Client

Note: Documentation for the client can be found here.

The following parameters are configurable for the API Client:

Parameter Type Description
environment Environment The API environment.
Default: Environment.PRODUCTION
http_client_instance Union[Session, HttpClientProvider] The Http Client passed from the sdk user for making requests
override_http_client_configuration bool The value which determines to override properties of the passed Http Client from the sdk user
http_call_back HttpCallBack The callback value that is invoked before and after an HTTP call is made to an endpoint
timeout float The value to use for connection timeout.
Default: 60
max_retries int The number of times to retry an endpoint call if it fails.
Default: 0
backoff_factor float A backoff factor to apply between attempts after the second try.
Default: 2
retry_statuses Array of int The http statuses on which retry is to be done.
Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]
retry_methods Array of string The http methods on which retry is to be done.
Default: ["GET", "PUT"]
proxy_settings ProxySettings Optional proxy configuration to route HTTP requests through a proxy server.
thingspace_oauth_credentials ThingspaceOauthCredentials The credential object for OAuth 2 Client Credentials Grant
vz_m2m_token_credentials VZM2mTokenCredentials The credential object for Custom Header Signature
session_token_credentials SessionTokenCredentials The credential object for Custom Header Signature
thingspace_oauth_1_credentials ThingspaceOauth1Credentials The credential object for OAuth 2 Client Credentials Grant

The API client can be initialized as follows:

Code-Based Client Initialization

from verizon.configuration import Environment
from verizon.http.auth.session_token import SessionTokenCredentials
from verizon.http.auth.thingspace_oauth import ThingspaceOauthCredentials
from verizon.http.auth.thingspace_oauth_1 import ThingspaceOauth1Credentials
from verizon.http.auth.vz_m2m_token import VZM2mTokenCredentials
from verizon.verizon_client import VerizonClient

client = VerizonClient(
    thingspace_oauth_credentials=ThingspaceOauthCredentials(
        oauth_client_id='OAuthClientId',
        oauth_client_secret='OAuthClientSecret'
    ),
    vz_m2m_token_credentials=VZM2mTokenCredentials(
        vz_m2m_token='VZ-M2M-Token'
    ),
    session_token_credentials=SessionTokenCredentials(
        session_token='SessionToken'
    ),
    thingspace_oauth_1_credentials=ThingspaceOauth1Credentials(
        oauth_client_id='OAuthClientId',
        oauth_client_secret='OAuthClientSecret'
    ),
    environment=Environment.PRODUCTION
)

Environment-Based Client Initialization

from verizon.verizon_client import VerizonClient

# Specify the path to your .env file if it’s located outside the project’s root directory.
client = VerizonClient.from_environment(dotenv_path='/path/to/.env')

See the Environment-Based Client Initialization section for details.

Environments

The SDK can be configured to use a different environment for making API calls. Available environments are:

Fields

Name Description
PRODUCTION Default
STAGING -
DEV -
QA -
MOCK_SERVER_FOR_LIMITED_AVAILABILITY_SEE_QUICK_START -

Authorization

This API uses the following authentication schemes.

List of APIs

SDK Infrastructure

Configuration

HTTP

Utilities

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

sdksio_verizon_apis_sdk-2.0.0.tar.gz (419.1 kB view details)

Uploaded Source

Built Distribution

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

sdksio_verizon_apis_sdk-2.0.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file sdksio_verizon_apis_sdk-2.0.0.tar.gz.

File metadata

  • Download URL: sdksio_verizon_apis_sdk-2.0.0.tar.gz
  • Upload date:
  • Size: 419.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for sdksio_verizon_apis_sdk-2.0.0.tar.gz
Algorithm Hash digest
SHA256 1790d98d3494573db44ab1867148deb049aa26a32ac2f1da4d91595ad179f524
MD5 13745fc95ad45eba6e2c98fa8ba95b6a
BLAKE2b-256 627fc087e9098028b76bccba163d7add964a203fdcfd4fb5ba9f5d4135b4566b

See more details on using hashes here.

File details

Details for the file sdksio_verizon_apis_sdk-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sdksio_verizon_apis_sdk-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc0a08d3d620131391d012ec00a1f509dc354012adb9feeb940b6c212f099caa
MD5 cb67fbf07755b36f7b826e7528ed1758
BLAKE2b-256 eac06ff5db5c94ca48eb5992b42853141bea74d386a7bb61eded90faf3cb500b

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