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)
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 |
verbose | logical. |
an rte_api
object as a list with
content: the parsed json resulting from the API call
path: the ressource called by the API request
response: the raw response from the API call.