Skip to main content

Official Python client for Omdaa WhatsApp Business API

Project description

omdaa-api-client (Python)

Official Python client for the Omdaa WhatsApp Business API. Omdaa API is free forever — unlimited sessions, messages, and Omdaa AI.

Installation

pip install omdaa-api-client

Quick Start

from omdaa import OmdaaClient, OmdaaError

client = OmdaaClient("your-api-key")
# Optional: OmdaaClient("your-api-key", base_url="https://omdaa.com/api/v1")

try:
    sessions = client.sessions.list()
    result = client.messages.send_text({
        "sessionId": "default",
        "to": "201234567890",
        "message": "Hello from Omdaa Python!",
    })
    client.webhooks.set({"url": "https://yoursite.com/webhook", "enabled": True})
except OmdaaError as e:
    print(e.status_code, str(e))

API Resources

Same as the Node.js SDK: messages, sessions, webhooks, templates, scheduled, bulk, contacts, groups, chats, business, storage, labels, integrations, queue, interactive, api_keys, profile, dashboard, plans, billing, referral, notifications, metrics, backup, security, audit, organizations, settings, channels, privacy, support, proxy, calls, auth, users, email, ai.

Requirements

  • Python 3.9+
  • requests >= 2.28.0

Development & tests

pip install -e ".[dev]"
python -m pytest tests -v
# or: python -m unittest discover -s tests -v

License

MIT

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

omdaa_api_client-1.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

omdaa_api_client-1.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file omdaa_api_client-1.1.1.tar.gz.

File metadata

  • Download URL: omdaa_api_client-1.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for omdaa_api_client-1.1.1.tar.gz
Algorithm Hash digest
SHA256 95374944b697729e6a4213ccc687d834975cac6a55e02cf6fe44393c46cc5481
MD5 2fd6a7b1c8a4495e2481de273d3f3c13
BLAKE2b-256 8b4b1867fbdbd47f9a0ed9fae972527d1c571fec5c659419051146ffe47d8640

See more details on using hashes here.

File details

Details for the file omdaa_api_client-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for omdaa_api_client-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27f584448bed63f2535a890518ad1369aa86a53803fa4d7501ec1fbc38880691
MD5 11b8ab879d9bd509880587208bcb6a4c
BLAKE2b-256 60344d55d0163cd88976e8dda2b41e3a186476317600bb760a917707d97e7b3d

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