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")
)
A character. Twitch App ID.
A character. Twitch App Secret.
Invisible authorization data.