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.0a1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

vonage-3.99.0a1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vonage-3.99.0a1.tar.gz
  • Upload date:
  • Size: 2.9 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.0a1.tar.gz
Algorithm Hash digest
SHA256 06cbbbe76846d2a91b1c4c7b6c3057619d7406029a7fdd1ffafce2e5f3372ce0
MD5 a79680e7ba4d37faf448e95ab718ef0d
BLAKE2b-256 5741b5c5c108760203d884a295a7b3fbd63f8dd776d470b19ef7ea931a058d8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vonage-3.99.0a1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a67d70c96668945d5671695f507581f5f01c8b278d0ca34db50fad87dd2a81
MD5 1dae3368e3ab37e81c5f6b532f71a1b0
BLAKE2b-256 c3a627b5adec3364f6623030705145f34addfa5f4dc2d64b36bc6ddf7c0f0bb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page