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.

AttributeFor
goomzo.messagesSend, read and cancel messages. See Send messages.
goomzo.broadcastscreate, get, list and cancel broadcasts.
goomzo.templatesSaved templates. See Send templates.
goomzo.whatsapp.templatesThe templates on your WhatsApp account.
goomzo.customersCustomers, their segments and activity. See Customers.
goomzo.activityrecord customer activity, by phone, email or id.
goomzo.segmentsSegments, and the customers in them.
goomzo.webhook_endpointsYour 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