For internal use or for those programming around the YouTube API.
Returns a token pre-processed with httr::config()
. Most users
do not need to handle tokens "by hand" or, even if they need some
control, ryt_auth()
is what they need. If there is no current
token, ryt_auth()
is called to either load from cache or
initiate OAuth2.0 flow.
If auth has been deactivated via ryt_deauth()
, ryt_token()
returns NULL
.
Value
A request
object (an S3 class provided by httr).
See also
Other low-level API functions:
ryt_has_token()