Phone number details and settings, as returned by Meta.
To connect, list or delete numbers in your Kapso project, use
KapsoEx.Platform.PhoneNumbers.
Summary
Functions
Gets phone number details (quality rating, name status, throughput, ...). Params: fields.
Lists the phone numbers of a WhatsApp Business Account. Params: fields.
Updates phone number settings, most commonly the two-step verification PIN
Types
@type result() :: {:ok, map()} | {:error, KapsoEx.Error.t()}
Functions
@spec get(KapsoEx.Client.t(), String.t(), map() | keyword()) :: result()
Gets phone number details (quality rating, name status, throughput, ...). Params: fields.
@spec list(KapsoEx.Client.t(), String.t(), map() | keyword()) :: result()
Lists the phone numbers of a WhatsApp Business Account. Params: fields.
@spec update(KapsoEx.Client.t(), String.t(), map() | keyword()) :: result()
Updates phone number settings, most commonly the two-step verification PIN:
PhoneNumbers.update(client, phone_number_id, %{pin: "123456"})