The `vonage-numbers` library provides a dedicated Python client for interacting with the Vonage Numbers API. It allows developers to programmatically manage their Vonage phone numbers, including searching, buying, updating, and canceling them. It is built on top of the `vonage-python` SDK and is currently at version 1.0.5, with updates tied to the underlying Vonage API and SDK changes.
pip install vonage-numbersVerified import paths — ran on the pinned version, not inferred.
Initialize the core `vonage.Client` with API credentials, then use it to instantiate the `vonage_numbers.Numbers` client to perform operations like fetching all owned numbers. Ensure `VONAGE_API_KEY` and `VONAGE_API_SECRET` environment variables are set.
Ensure both `vonage-numbers` and `vonage-python` are installed: `pip install vonage-numbers vonage-python`
First create `client = vonage.Client(key='YOUR_KEY', secret='YOUR_SECRET')`, then `numbers_client = Numbers(client)`.
Regularly consult the official Vonage Developer Documentation for the Numbers API to stay updated on schema changes or deprecated features.
Install the `vonage-python` SDK: `pip install vonage-python`
First, create an authenticated `vonage.Client` instance, then pass it to `Numbers`: `client = vonage.Client(key='...', secret='...'); numbers_client = Numbers(client)`
Ensure `VONAGE_API_KEY` and `VONAGE_API_SECRET` environment variables are set correctly, or pass your valid API key and secret directly as arguments to `vonage.Client(key='YOUR_API_KEY', secret='YOUR_API_SECRET')`.