Check if the necessary token or cookies are stored on your computer
already. By default, the function checks for the authentication of the
research and hidden API. To learn how you can authenticate, see the
research API vignette
or hidden API vignette.
You can also view these locally with vignette("research-api", package = "traktok") and vignette("unofficial-api", package = "traktok").
Examples
auth_check()
#> Warning: It looks like you are using traktok for the first time. You need to add some
#> basic authentication for this function to work. See `?auth_check()`.
au <- auth_check()
#> Warning: It looks like you are using traktok for the first time. You need to add some
#> basic authentication for this function to work. See `?auth_check()`.
if (isTRUE(au["research"])) {
message("Ready to use the research API!")
}
if (isTRUE(au["hidden"])) {
message("Ready to use all function of unofficial the API!")
}
