KapsoEx.WhatsApp.Contacts (kapso_ex v0.1.0)

Copy Markdown View Source

Contacts stored by Kapso for a phone number.

To create, update or erase contacts use KapsoEx.Platform.Contacts.

Summary

Functions

Gets a contact by WhatsApp ID (phone number). Params: fields.

Lists contacts. Params: wa_id, customer_id, has_customer, limit, before, after, fields.

Types

result()

@type result() :: {:ok, map()} | {:error, KapsoEx.Error.t()}

Functions

get(client, phone_number_id, wa_id, params \\ [])

@spec get(KapsoEx.Client.t(), String.t(), String.t(), map() | keyword()) :: result()

Gets a contact by WhatsApp ID (phone number). Params: fields.

list(client, phone_number_id, params \\ [])

@spec list(KapsoEx.Client.t(), String.t(), map() | keyword()) :: result()

Lists contacts. Params: wa_id, customer_id, has_customer, limit, before, after, fields.