SDK em Python para a API de envios de SMS em Angola
Project description
Ombala SDK Python
SDK Python para a API Ombala — envio de SMS em Angola.
Instalação
pip install ombala
Uso
from ombala import Ombala
client = Ombala("Token a9eb6ea6-5777-4848-a9ed-8cbffc74a503")
# Enviar SMS
client.messages.send(
message="Olá, tudo bem?",
from_="MINHALOJA",
to="921939411",
)
# Listar mensagens
client.messages.list(page=1)
# Ver saldo
client.credits.balance()
API
Mensagens
| Método | Descrição |
|---|---|
messages.send(message, from_, to, schedule?) |
Enviar SMS |
messages.list(page?) |
Listar mensagens |
messages.get(message_id, id?) |
Obter mensagem por ID |
messages.delete(message_id) |
Apagar registo de envio |
messages.list_recipients(page?) |
Listar destinatários |
messages.list_by_date_range(start, end, page?) |
Listar mensagens por intervalo de datas |
messages.list_by_recipient(phone_number?, page?) |
Listar mensagens de um número |
Remetentes
| Método | Descrição |
|---|---|
senders.create(name) |
Criar remetente |
senders.list() |
Listar remetentes |
senders.list_approved() |
Listar remetentes aprovados |
senders.list_pending() |
Listar remetentes pendentes |
senders.delete(sender_id) |
Apagar remetente |
Créditos
| Método | Descrição |
|---|---|
credits.balance() |
Mostrar saldo |
credits.recharges() |
Histórico de carregamentos |
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
ombala-0.1.2.tar.gz
(5.1 kB
view details)
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 ombala-0.1.2.tar.gz.
File metadata
- Download URL: ombala-0.1.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e495f2b12cb64daa65a4f5da87fc703f8893fd94bfc9791c2f28c9a215b398b
|
|
| MD5 |
09878ad854651621ca2a8c17ec7eea27
|
|
| BLAKE2b-256 |
d060f7b15167b2b8992f7eb664aa008cec69a0ee7c7730792df22e87187e54e6
|
File details
Details for the file ombala-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ombala-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2db4dea52d50b5d5a8d3973268a5e4fe5908db7878a1b3fccc5d4b9e9be34158
|
|
| MD5 |
ed6dc580c2a2d2c90b48c20238dab6e9
|
|
| BLAKE2b-256 |
8b85a75c24af96752f494ce9abf75030d0e65f6e817c689a2822f8046a8b658c
|