get_access_token {valdr} | R Documentation |
Get or refresh VALD access token
Description
Retrieves a cached access token from disk if valid, otherwise fetches a new one.
Usage
get_access_token(config = NULL, verbose = TRUE)
Arguments
config |
Configuration object. If NULL, uses internal config set by |
verbose |
Whether to print a message when refreshing the token. |
Value
A character vector of length 1 (a single string) representing the bearer token used to authenticate requests. Returned invisibly.
[Package valdr version 1.0.0 Index]