If token is not already available in the current session, this function will stop execution. An active token for the current session must be requested before any other task.
datarte_token(verbose = FALSE)
verbose | Set to |
---|
a request
object (an S3 class provided by httr
). It is the token prepared for
use with httr configuration system. see httr::config()
.
Use get_current_token()
to check for valid token.
# NOT RUN { # use in httr fonction like GET for authentification as config for httr datarte_auth(client_id, client_secret) httr::GET("https://httpbin.org/get", datarte_token()) # }