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.1.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.1.tar.gz.
File metadata
- Download URL: ombala-0.1.1.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 |
8e0a0142031314ccf4d3299ef7c8501a84575b4e46acfb2bf99ad525cd2fff58
|
|
| MD5 |
6b7d8eea894cde2e4da6ede23a4f748d
|
|
| BLAKE2b-256 |
06237ad5e7a530015eaa7f86814b022820ed23310ff1ba4d14f6347363daf550
|
File details
Details for the file ombala-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ombala-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 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 |
ebca6998745e42fd217f224c502cc5e773bd81da363ca82e5d1bf4a68bc3973e
|
|
| MD5 |
8ee77dd6d820c6478cdb5a28b469306d
|
|
| BLAKE2b-256 |
bded6dde2787aa5f1c590a1d080fa6959dd4e8d9f60dfa5ce2ecd579e49168cd
|