This function is the base one used in each of the different API functions. It is ressource generic and could be adapted to call the available ressource on the data RTE portal.

call_api(ressource_path, refresh = TRUE, verbose = FALSE)

Arguments

ressource_path

string. Endpoint of the ressource as describe in data rte API documentation available on data.rte-france.com (part of the url after /open_api/)

refresh

logical. force to FALSE to prevent refresh

verbose

logical.

Value

an rte_api object as a list with

  1. content: the parsed json resulting from the API call

  2. path: the ressource called by the API request

  3. response: the raw response from the API call.