Resources
Everything on the client, by resource.
Every method returns the API's answer as typed dicts. Long lists return a Page.
AsyncGoomzo has the same methods, each awaited.
| Attribute | For |
|---|---|
goomzo.messages | Send, read and cancel messages. See Send messages. |
goomzo.broadcasts | create, get, list and cancel broadcasts. |
goomzo.templates | Saved templates. See Send templates. |
goomzo.whatsapp.templates | The templates on your WhatsApp account. |
goomzo.customers | Customers, their segments and activity. See Customers. |
goomzo.activity | record customer activity, by phone, email or id. |
goomzo.segments | Segments, and the customers in them. |
goomzo.webhook_endpoints | Your webhook endpoints. See Webhooks. |
Types
Every request and answer is a typed dict in goomzo.types, such as Message, MessageInput, Customer and
WebhookEvent:
from goomzo.types import Message, MessageInput
def order_ready(phone: str) -> MessageInput:
return {'to': phone, 'channel': 'sms', 'content': {'text': 'Your order is ready.'}}Last updated