get_token | R Documentation |
Get a token to access RTE data API
get_token(key, user = NULL, proxy_pwd = NULL)
key |
a base64 encoded string or a list containing 'client_id' and 'client_secret'. To get those credentials you need an account on https://data.rte-france.com and attach the concerned API to an application. |
user |
Username for proxy if needeed. |
proxy_pwd |
Password for proxy if needeed. |
a list with the access token
## Not run: # To create a token you can use id_client and id_secret id_client <- "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" id_secret <- "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" token <- get_token( key = list(id_client = id_client, id_secret = id_secret) ) # or the base64 encoded key key <- "TGEgZGF0YXNjaWVuY2UgYXZlYyB1biBncmFuZCBS=" token <- get_token(key) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.