The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
R wrapper for whapi.cloud — a lightweight WhatsApp API.
The whapi package provides a tidyverse-friendly interface to the whapi.cloud API, allowing you to send, receive, and manage WhatsApp messages programmatically in R.
Features include:
All outputs are returned as tibbles for easy integration into tidyverse workflows.
The package is under development. Install from source:
# install.packages("devtools")
::install_github("StrategicProjects/whapi") devtools
Sys.setenv(WHAPI_TOKEN = "your_api_token_here")
library(whapi)
whapi_send_text("5581999999999", "Hello from R! ✅")
whapi_send_image("5581999999999", image = "card.png", type = "file", caption = "Card")
whapi_send_sticker("5581999999999", sticker = "sticker.webp", type = "file")
whapi_send_quick_reply(
to = "5581999999999",
body_text = "Do you confirm?",
buttons = tibble::tribble(~title, "YES", "NO")
)
whapi_react_to_message("PsqXn5SAD5v7HRA-wHqB9tMeGQ", "❤️")
whapi_mark_message_read("PsqXn5SAD5v7HRA-wHqB9tMeGQ")
whapi_get_contact_profile("5581999999999")
whapi_check_health()
If you find any issues or have feature requests, feel free to create an issue or a pull request on GitHub.
This package is licensed under the MIT License. See the
LICENSE
file for more details.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.