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.

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.0.0.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.0.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for omdaa_api_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fcef87c99ea2640881fecbe7e6eed4ad68cb5e7dee4c457df64a92f6c9395e76
MD5 62b796aa4900ddd13bb7eb9173367a9a
BLAKE2b-256 9366b49607827e9b82d75c8b7288d86e5c23e5fb1a25127c9dbddfbdcce44d69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for omdaa_api_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7877da878c5b8ab12c79b5f400bbc064d85c7b3995114e2f807836cfb1f32d08
MD5 fd8595dddeec2fbdaf2fdb956041d40f
BLAKE2b-256 69a1b49df0bc8f557b63bcb67c8213c96a5ed2db14c78617c924181d0714993c

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