File size: 1,052 Bytes
46252cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""
OpenWA Python SDK.

Official client library for the OpenWA WhatsApp API Gateway.

Example usage::

    from openwa import OpenWAClient

    client = OpenWAClient(
        base_url="http://localhost:2785",
        api_key="owa_k1_…",
    )

    client.sessions.start("my-session")
    result = client.messages.send_text("my-session", {
        "chatId": "628123456789@c.us",
        "text": "Hello from the OpenWA Python SDK!",
    })
    print(result["messageId"])
"""

from __future__ import annotations

from .client import OpenWAClient
from .errors import (
    OpenWAApiError,
    OpenWAAuthError,
    OpenWAConflictError,
    OpenWAError,
    OpenWAForbiddenError,
    OpenWANotFoundError,
    OpenWANotImplementedError,
    OpenWARateLimitError,
    OpenWATimeoutError,
)

__all__ = [
    "OpenWAClient",
    "OpenWAError",
    "OpenWAApiError",
    "OpenWAAuthError",
    "OpenWAForbiddenError",
    "OpenWANotFoundError",
    "OpenWAConflictError",
    "OpenWARateLimitError",
    "OpenWANotImplementedError",
    "OpenWATimeoutError",
]