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2.6.3
2.6.2
2.6.1
2.6.0
2.5.5
2.5.4
2.5.3
2.5.2
توضیحات
Python Server SDK for using Vonage APIs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | vonage-4.7.2 |
| نام | vonage |
| نسخه کتابخانه | 4.7.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Vonage <devrel@vonage.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/vonage/ |
| مجوز | - |
# 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](https://developer.vonage.com).
## Installation
Install the package using pip:
```bash
pip install vonage
```
## Usage
```python
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 SMS API:
```python
from vonage_sms import SmsMessage
message = SmsMessage(to='1234567890', from_='Vonage', text='Hello World')
response = client.sms.send(message)
print(response.model_dump_json(exclude_unset=True))
```
You can also access the underlying `HttpClient` instance through the `http_client` property:
```python
user_agent = vonage.http_client.user_agent
```
نیازمندی
| مقدار | نام |
|---|---|
| - | vonage-account>=1.1.1 |
| - | vonage-application>=2.0.1 |
| - | vonage-http-client>=1.5.1 |
| - | vonage-messages>=1.5.0 |
| - | vonage-network-auth>=1.0.2 |
| - | vonage-network-sim-swap>=1.1.2 |
| - | vonage-network-number-verification>=1.0.2 |
| - | vonage-number-insight>=1.0.7 |
| - | vonage-numbers>=1.0.4 |
| - | vonage-sms>=1.1.6 |
| - | vonage-subaccounts>=1.0.4 |
| - | vonage-users>=1.2.1 |
| - | vonage-utils>=1.1.4 |
| - | vonage-verify>=2.1.0 |
| - | vonage-verify-legacy>=1.0.1 |
| - | vonage-video>=1.2.0 |
| - | vonage-voice>=1.4.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl vonage-4.7.2:
pip install vonage-4.7.2.whl
نصب پکیج tar.gz vonage-4.7.2:
pip install vonage-4.7.2.tar.gz