Noizu.WhatsApp.Templates (Noizu.WhatsApp v0.1.0)

Copy Markdown View Source

Message templates on the WhatsApp Business Account (WHATSAPP_BUSINESS_ACCOUNT_ID).

Only Templates.list/1 is in the minimal contract; list_stream/2 pages via Noizu.WhatsApp.Pagination.

Summary

Functions

Lists templates on the WABA (defaults to status "APPROVED" — pass status: :all to see every template). Options: :waba_id, :status, :name, :limit, :after, :meta.

Lazy stream over every template page (same options as list/2 minus paging).

Functions

list(client_or_opts, opts \\ [])

Lists templates on the WABA (defaults to status "APPROVED" — pass status: :all to see every template). Options: :waba_id, :status, :name, :limit, :after, :meta.

list_stream(client_or_opts, opts \\ [])

@spec list_stream(Noizu.WhatsApp.Client.t() | keyword(), keyword()) :: Enumerable.t()

Lazy stream over every template page (same options as list/2 minus paging).