knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
{telnyxr}
provides users a range of functions designed to communicate with Telnyx API from R.
You can install the development version from GitHub:
if (!require("remotes")) { install.packages("remotes") } remotes::install_github("CannabisMDA/telnyxr", dependencies = TRUE)
You should only need to do this once per session.
library("telnyxr") # Using environment variable. Sys.setenv(TELNYX_TOKEN = "KEY4Ozq8BFX94w5St5hikg7UV0lPpH8e56M9W4Ozq8BFX94w5St5hikg7U") telnyxr_auth() # Or providing the token. telnyxr_auth("KEY4Ozq8BFX94w5St5hikg7UV0lPpH8e56M9W4Ozq8BFX94w5St5hikg7U")
create_message(to = "+12125557634", text = "Hello from R 👋", from = "+19178675903")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.