README.md

telnyxr - An Interface to the Telnyx API for R

{telnyxr} provides users a range of functions designed to communicate with Telnyx API from R.

Installation

You can install the development version from GitHub:

if (!require("remotes")) {
  install.packages("remotes")
}
remotes::install_github("CannabisMDA/telnyxr", dependencies = TRUE)

Example

Set Up Authentication

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")

Send a Text Message

create_message(to = "+12125557634", text = "Hello from R 👋", from = "+19178675903")


CannabisMDA/telnyxr documentation built on Dec. 17, 2021, 1:56 p.m.