powered by
Sends a geographic location pin via Evolution API v2.
send_location( client, number, latitude, longitude, name = NULL, address = NULL, verbose = FALSE )
A named list with the API response. The HTTP status code is stored in attr(result, "http_status").
attr(result, "http_status")
An evo_client() object.
evo_client()
Character. Recipient number with country code (e.g., "5581999990000" or "+5581999990000").
"5581999990000"
"+5581999990000"
Numeric. Latitude coordinate.
Numeric. Longitude coordinate.
Optional character. Location label name.
Optional character. Address description.
Logical. If TRUE, logs request/response details with cli.
TRUE
if (FALSE) { send_location(client, "5581999990000", latitude = -8.05, longitude = -34.88, name = "Recife Antigo", address = "Marco Zero") }
Run the code above in your browser using DataLab