twitch_auth: Get auth token

View source: R/twitch_auth.R

twitch_authR Documentation

Get auth token

Description

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.

Usage

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

## Not run: 
library(twitchr)

twitch_auth()

## End(Not run)

KoderKow/twitchr documentation built on Aug. 11, 2022, 8:56 p.m.