datarte_token: Produces token for data.rte-france.com

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
datarte_token(verbose = FALSE)

Arguments

verbose

Set to TRUE to print information.

Details

Use get_current_token() to check for valid token.

Value

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

Examples

1
2
3
4
5
6
  ## 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())
  
## End(Not run)

cderv/opendatarte documentation built on June 18, 2019, 6:41 p.m.