class

Zazu::Client

Inherits Reference < Object

The SDK entry point. Resources hang off it as getters.

client = Zazu::Client.new(api_key: "sk_live_...")
page = client.accounts.list

Constants

DEFAULT_BASE_URL = "https://zazu.ma"
DEFAULT_TIMEOUT = 30.seconds

Constructors

new(api_key : String | Nil = nil, base_url : String | Nil = nil, api_version : String | Nil = nil, timeout : Time::Span = DEFAULT_TIMEOUT)

Builds a client. An API key is required — pass api_key or set ZAZU_API_KEY. base_url defaults to ZAZU_BASE_URL or https://zazu.ma; api_version pins the Zazu-Version request header (default: ZAZU_API_VERSION).

Source

Instance methods

accounts
Source
beneficiaries
Source
checkout_sessions
Source
customers
Source
entity
Source
invoices
Source
request(method : String, path : String, params : URI::Params | Nil = nil, body : String | Nil = nil) : Response

Performs an HTTP request against the API. Non-2xx responses raise Zazu::Error; transport failures raise Zazu::ConnectionError. body (when non-nil) must already be JSON-encoded.

Source
transfer_drafts
Source
webhook_endpoints
Source