if (FALSE) {
# Make sure you set WHAPI_TOKEN in your environment or pass via argument
Sys.setenv(WHAPI_TOKEN = "your_token_here")
# Simple example:
whapi_send_text("5581999999999", "Hello! Test message via API")
# With extra options:
whapi_send_text(
to = "5581999999999",
body = "Hello, @5581999999999 Ola",
mentions = c("5581999999999"),
typing_time = 2, no_link_preview = TRUE
)
}
Run the code above in your browser using DataLab