set_key: Set a key for a specific API

View source: R/api-keys.R

set_keyR Documentation

Set a key for a specific API

Description

Set a key for a specific API

Usage

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

## 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 Oct. 6, 2022, 6:32 p.m.