Una librería de Python para enviar SMS a través de QvaTel.com
Project description
QvaTel Python Library
Esta librería proporciona una interfaz de Python para interactuar con la API de SMS de QvaTel
Funciones
- Enviar mensajes SMS.
- Obtener el estado de los mensajes.
- Consultar el balance de la cuenta.
Requisitos
- Python 3.6 o superior.
- Una cuenta de QvaTel con un API token de SMS.
Instalación
Instala la librería usando pip:
pip install qvatel-sms-api
Uso
Aquí hay un ejemplo básico de cómo usar la librería para enviar un SMS, obtener el estado de un mensaje y consultar el balance de la cuenta:
from qvatel.client import QvaTelClient
# Inicializa el cliente con tu API token
client = QvaTelClient('your_api_token_here')
# Envía un SMS
destination = '+5352942387'
message = 'Hola mundo desde QvaTel'
response = client.send_sms(destination, message)
print(response)
# Obtiene el estado de un mensaje
message_id = 'your_message_id_here'
status = client.get_message_status(message_id)
print(status)
# Obtiene el balance de la cuenta
balance = client.get_account_balance()
print(balance)
Contribuciones
Las contribuciones son bienvenidas. Por favor, abre un issue si encuentras un bug o tienes una solicitud de función.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qvatel_sms_api-1.0.7.tar.gz.
File metadata
- Download URL: qvatel_sms_api-1.0.7.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de766fae8a2b3f9a3b8a0618d3b02959fb9f486a61228e4bbd016082e6b39368
|
|
| MD5 |
23f25d4d061c3cbd3bd378cb5dc91e14
|
|
| BLAKE2b-256 |
8bc98ff09369088fb10eadf50649781ddd2c9b1f27d857e7f740b7835d1ea787
|
File details
Details for the file qvatel_sms_api-1.0.7-py3-none-any.whl.
File metadata
- Download URL: qvatel_sms_api-1.0.7-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
793deeeb8e2c1d3265c8819cf3e9788efbf9ec00d62485077fa93ea5b4601410
|
|
| MD5 |
d18378171e4868748e2962be74ffd208
|
|
| BLAKE2b-256 |
869efcc5ddc098a0e8c2606ea5c1d3be4f83367fe96c64eaffd7ae69838e098d
|