The `vonage-http-client` is a foundational Python HTTP client library for interacting with Vonage APIs. It provides low-level request building and authentication mechanisms, supporting API key/secret and JWT-based authentication. While primarily an internal dependency of the higher-level `vonage` Python SDK, it can be used directly for specific API interactions. The current version is 1.5.1, and it has a relatively stable release cadence, with updates typically coinciding with major SDK changes or specific HTTP client enhancements.
pip install vonage-http-clientVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instantiate the `vonage-http-client` with API key/secret and make a basic GET request to a Vonage API endpoint. Remember to set `VONAGE_API_KEY` and `VONAGE_API_SECRET` environment variables. For more complex interactions, the full `vonage` Python SDK is generally preferred as it handles endpoint paths and response parsing automatically.
For most application development, use `pip install vonage` and import from `vonage` instead of `vonage_http_client`.
Refer to the specific Vonage API documentation for the exact paths and parameters required for each endpoint. Alternatively, use the `vonage` SDK for simplified API calls.
Double-check your API key and secret, ensure they are active in your Vonage account, and verify that the associated API key has the required permissions for the API endpoint you are calling.