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)

Arguments

verbose

Set to TRUE to print information.

Value

a request object (an S3 class provided by httr). It is the token prepared for use with httr configuration system. see httr::config().

Details

Use get_current_token() to check for valid token.

Examples

# 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()) # }