
Send a WhatsApp contact (auto-generate wuid as @s.whatsapp.net)
Source:R/evolution.R
send_contact.RdSends one or more contacts following the Evolution API v2 format.
Automatically generates the wuid field as <digits>@s.whatsapp.net
from each contact’s phone number (or from number if not provided).
Arguments
- client
An
evo_client()object.- number
Recipient number (E.164, e.g. "+55819...").
- contact
Either:
a named list with fields
fullName,phoneNumber,organization,email,url; ora list of such lists (to send multiple contacts). The
wuidfield will be auto-generated if missing.
- verbose
Logical; if TRUE, shows detailed logs (cli + httr2 verbose).
Examples
if (FALSE) { # \dontrun{
send_contact(
client,
number = "+55819...",
contact = list(
fullName = "Your Name",
phoneNumber = "+55819...",
organization = "Company Name",
email = "andre@example.com",
url = "https://company_site.tec.br"
),
verbose = TRUE
)
} # }