Skip to main content

Python Server SDK for using Vonage APIs

Project description

Vonage Python SDK

The Vonage Python SDK Package vonage provides a streamlined interface for using Vonage APIs in Python projects. This package includes the Vonage class, which simplifies API interactions.

The Vonage class in this package serves as the main entry point for using Vonage APIs. It abstracts away complexities with authentication, HTTP requests and more.

For full API documentation refer to the Vonage Developer documentation.

Installation

Install the package using pip:

pip install vonage

Usage

from vonage import Vonage, 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 instance
vonage = Vonage(auth=auth, http_client_options=options)

The Vonage class provides access to various Vonage APIs through its properties. For example, to use methods to call the Number Insight API v2:

from vonage_number_insight_v2 import FraudCheckRequest

vonage.number_insight_v2.fraud_check(FraudCheckRequest(phone='1234567890'))

You can also access the underlying HttpClient instance through the http_client property:

user_agent = vonage.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

vonage-3.99.0a6.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

vonage-3.99.0a6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file vonage-3.99.0a6.tar.gz.

File metadata

  • Download URL: vonage-3.99.0a6.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

Hashes for vonage-3.99.0a6.tar.gz
Algorithm Hash digest
SHA256 b25321b41846aff8e632df94306cb066ae143a77c9704c1d746c3f2712d4b8ab
MD5 545127d57f7a72747cd46c23c2e497e4
BLAKE2b-256 f37b5c12fd94defe1d553565fbc66503e3bf75242a4bddf988ab753a583f2bd8

See more details on using hashes here.

File details

Details for the file vonage-3.99.0a6-py3-none-any.whl.

File metadata

  • Download URL: vonage-3.99.0a6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for vonage-3.99.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 d64c6f31ac853a998fc6b58715fe35f0a292794100d9525a6f8f58b296197241
MD5 a92a6296b31686cd9ce38bbd75429e2d
BLAKE2b-256 8e122b93bbd42fbdcd437c9f4b27a778bd66eec880db7f5bfacca7363e60d17e

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