KapsoEx.WhatsApp.BlockUsers (kapso_ex v0.1.0)

Copy Markdown View Source

Block users from messaging a phone number, and unblock them.

Users are identified by phone number ("+56961567267") or WhatsApp ID.

Summary

Types

result()

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

Functions

block(client, phone_number_id, users)

@spec block(KapsoEx.Client.t(), String.t(), [String.t()]) :: result()

Blocks one or more users.

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

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

Lists blocked users.

unblock(client, phone_number_id, users)

@spec unblock(KapsoEx.Client.t(), String.t(), [String.t()]) :: result()

Unblocks one or more users.