twitch_auth | R Documentation |
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") )
client_id |
A character. Twitch App ID. |
client_secret |
A character. Twitch App Secret. |
Invisible authorization data.
## Not run: library(twitchr) twitch_auth() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.