Noizu.WhatsApp (Noizu.WhatsApp v0.1.0)

Copy Markdown View Source

WhatsApp Business Cloud API (Meta Graph) client.

client = Noizu.WhatsApp.Client.new()
{:ok, resp} = Noizu.WhatsApp.Messages.send_text(client, "+14155551234", "hi")

Layout mirrors noizu_discord: Client (explicit config), Request (Req engine + retry + error normalization), Error (structured failures), Pagination (lazy cursor streams), plus resource modules (Messages, Templates, Media, Webhook) and Phone (E.164 normalization + masking).

Environment variables

  • WHATSAPP_ACCESS_TOKEN — permanent system-user token (bearer auth).
  • WHATSAPP_PHONE_NUMBER_ID — the sending phone number (messages/media root).
  • WHATSAPP_BUSINESS_ACCOUNT_ID — WABA id (Templates.list/1).
  • WHATSAPP_APP_SECRET — webhook payload signature verification.
  • WHATSAPP_VERIFY_TOKEN — webhook subscription challenge.

The Graph API version defaults to v21.0 and is configurable (Client.new/1 :graph_version).