get_open_api | R Documentation |
Several APIs are available, create an application and attach APIs to it, this function allows to retrieve data from any API, you'll need its name and the name of the resource (informations available on the page of the API on https://data.rte-france.com).
get_open_api( api, resource, start_date = NULL, end_date = NULL, q = list(), token = NULL, raw = FALSE )
api |
Name of main API. |
resource |
Resource to use in the API. |
start_date |
Optional, starting date to filter results,
if used, |
end_date |
Optional, ending date to filter results. |
q |
Additional parameters to query the API. |
token |
Token obtained with |
raw |
Return output from |
a data.table
or a list
if raw = TRUE
.
## Not run: set_key( api = "physical_flow", key = "BASE64_KEY" ) # Get physical flows between cross border country physfl <- get_open_api(api = "physical_flow", resource = "physical_flows") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.