Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ombala-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for ombala-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e0a0142031314ccf4d3299ef7c8501a84575b4e46acfb2bf99ad525cd2fff58
MD5 6b7d8eea894cde2e4da6ede23a4f748d
BLAKE2b-256 06237ad5e7a530015eaa7f86814b022820ed23310ff1ba4d14f6347363daf550

See more details on using hashes here.

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

Hashes for ombala-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebca6998745e42fd217f224c502cc5e773bd81da363ca82e5d1bf4a68bc3973e
MD5 8ee77dd6d820c6478cdb5a28b469306d
BLAKE2b-256 bded6dde2787aa5f1c590a1d080fa6959dd4e8d9f60dfa5ce2ecd579e49168cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page