Get started with the Twitch API here. TWITCH_CLIENT_ID and TWITCH_SECRET need to be set in the .Renviron file. Set these values in .Renviron with usethis::edit_r_environ(); ex: TWITCH_CLIENT_ID=abc123.

twitch_auth(
  client_id = Sys.getenv("TWITCH_CLIENT_ID"),
  client_secret = Sys.getenv("TWITCH_SECRET")
)

Arguments

client_id

A character. Twitch App ID.

client_secret

A character. Twitch App Secret.

Value

Invisible authorization data.

Examples

if (FALSE) {
library(twitchr)

twitch_auth()
}