Learn R Programming

evolution (version 0.0.1)

send_location: Send a location

Description

Send a location

Usage

send_location(
  client,
  number,
  latitude,
  longitude,
  name = NULL,
  address = NULL,
  verbose = FALSE
)

Value

A named list parsed from the JSON output of Evolution API, describing the location message sent (message ID, queue info, timestamps, etc.). The HTTP status code is stored in attr(result, "http_status"). This return value is the official server acknowledgement of the location dispatch.

Arguments

client

An evo_client() object.

number

Character. Recipient in E.164 format (e.g., "+5581999...").

latitude, longitude

Numeric coordinates.

name, address

Optional character (label/description).

verbose

Logical. If TRUE, logs request/response details.