set_key: Set a key for a specific API

Description Usage Arguments Examples

Description

Set a key for a specific API

Usage

1
set_key(api, key)

Arguments

api

Name of the API.

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.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

set_key("consumption", "BASE64 KEY")

# or
set_key("consumption", list(id_client = "XXX", id_secret = "XXX"))


## End(Not run)

dreamRs/rte.data documentation built on June 18, 2019, 8:02 a.m.