Package: whapi 0.0.2

Andre Leite

whapi: R Client for 'whapi.cloud'

Provides an R interface to the 'whapi.cloud' 'API', enabling sending and receiving 'WhatsApp' messages directly from 'R'. Functions include sending text, images, documents, stickers, geographic locations, and interactive messages (buttons and lists). Also includes webhook parsing utilities and channel health checks.

Authors:Andre Leite [aut, cre], Hugo Vaconcelos [aut], Diogo Bezerra [aut]

whapi_0.0.2.tar.gz
whapi_0.0.2.zip(r-4.7)whapi_0.0.2.zip(r-4.6)whapi_0.0.2.zip(r-4.5)
whapi_0.0.2.tgz(r-4.6-any)whapi_0.0.2.tgz(r-4.5-any)
whapi_0.0.2.tar.gz(r-4.7-any)whapi_0.0.2.tar.gz(r-4.6-any)
whapi_0.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
whapi/json (API)

# Install 'whapi' in R:
install.packages('whapi', repos = c('https://strategicprojects.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/strategicprojects/whapi/issues

On CRAN:

Conda:

3.18 score 236 downloads 45 exports 39 dependencies

Last updated from:03dab89f41. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK146
source / vignettesOK200
linux-release-x86_64OK139
macos-release-arm64OK163
macos-oldrel-arm64OK100
windows-develOK90
windows-releaseOK86
windows-oldrelOK89
wasm-releaseOK118

Exports:whapi_as_arraywhapi_build_servicos_sectionswhapi_check_healthwhapi_clip_textwhapi_coerce_buttons_basewhapi_coerce_buttons_mixedwhapi_coerce_buttons_quickwhapi_common_blockswhapi_date_diff_dayswhapi_extract_common_fieldswhapi_flatten_webhookwhapi_fmt_datewhapi_get_contact_profilewhapi_get_messagewhapi_log_plumber_reqwhapi_log_pretty_jsonwhapi_make_uniquewhapi_mark_message_readwhapi_match_digitswhapi_normalize_towhapi_only_digitswhapi_parse_bodywhapi_parse_commandwhapi_parse_messageswhapi_parse_updateswhapi_perform_requestwhapi_react_to_messagewhapi_redactwhapi_scalarize_changewhapi_send_documentwhapi_send_imagewhapi_send_listwhapi_send_locationwhapi_send_mixed_actionswhapi_send_quick_replywhapi_send_stickerwhapi_send_textwhapi_slugifywhapi_to_ascii_lowerwhapi_to_numwhapi_to_posixwhapi_to_posixctwhapi_to_pretty_jsonwhapi_truncwhapi_validate_list_sections

Dependencies:askpassbitbit64clicliprcpp11crayoncurldplyrgenericsgluehmshttr2jsonlitelifecyclelubridatemagrittrmimeopensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsreadrrlangstringistringrsystibbletidyselecttimechangetzdbutf8vctrsvroomwithr

Readme and manuals

Help Manual

Help pageTopics
Build Whapi service sections from a tibble (with 'section' column)whapi_build_servicos_sections
Check Whapi.Cloud channel health and statuswhapi_check_health
Clip long text with ellipsiswhapi_clip_text
Coerce and normalize button specs for Whapi interactive messageswhapi_coerce_buttons_base
Coerce and validate MIXED buttons (url / call / copy) for Whapiwhapi_coerce_buttons_mixed
Coerce and validate QUICK REPLY buttons for Whapiwhapi_coerce_buttons_quick
Build common message blocks for Whapi interactive messageswhapi_common_blocks
Days between two dateswhapi_date_diff_days
Extract common fields from Whapi API responseswhapi_extract_common_fields
Flatten Whapi webhook payload into tidy rows for persistence (robust)whapi_flatten_webhook
Safe date formattingwhapi_fmt_date
Get WhatsApp contact profile(s) via Whapi.Cloudwhapi_get_contact_profile
Get a WhatsApp message by ID (Whapi.Cloud)whapi_get_message
Log details of a Plumber request object using the cli packagewhapi_log_plumber_req
Convert R objects to pretty JSON for loggingwhapi_log_pretty_json
Make identifiers unique while preserving orderwhapi_make_unique
Mark a WhatsApp message as READ (Whapi.Cloud)whapi_mark_message_read
Digit matching helper (with partial threshold)whapi_match_digits
Normalize WhatsApp contact IDs (phone numbers only)whapi_normalize_to
Keep only digits from a stringwhapi_only_digits
Parse the raw body of a Plumber requestwhapi_parse_body
Parse a text message into command and arguments (Whapi helper)whapi_parse_command
Perform an HTTP request to Whapi.Cloudwhapi_perform_request
React to a WhatsApp message (Whapi.Cloud)whapi_react_to_message
Redact sensitive values in headers/cookieswhapi_redact
Send a DOCUMENT via Whapi.Cloud (file, url, or base64)whapi_send_document
Send an image via Whapi.Cloud (file, url, or base64)whapi_send_image
Send a WhatsApp interactive LIST message (Whapi.Cloud)whapi_send_list
Send a geographic location via Whapi.Cloudwhapi_send_location
Send a WhatsApp interactive message mixing URL/CALL/COPY buttons (Whapi.Cloud)whapi_send_mixed_actions
Send a WhatsApp interactive message with QUICK REPLY buttons (Whapi.Cloud)whapi_send_quick_reply
Send a STICKER via Whapi.Cloud (file, url, or base64)whapi_send_sticker
Send a text message via Whapi.Cloudwhapi_send_text
whapi_slugify strings for safe IDs (e.g., button IDs in Whapi)whapi_slugify
Convert text to lowercase ASCII (remove accents)whapi_to_ascii_lower
Convert numeric timestamp to POSIXct (UTC)whapi_to_posixct
Truncate long strings for loggingwhapi_trunc
Validate 'list_sections' for Whapi LIST interactive messageswhapi_validate_list_sections