Description Usage Arguments Details Author(s) Examples
openbahn_auth()
stores the API key in an environment variable to make it accessible for all openbahn
functions.
1 | openbahn_auth(key)
|
key |
character, the API key provided by http://data.deutschebahn.com/ |
The API key is stored in the environment variable OPENBAHN_KEY
. In addition, openbahn_auth()
sets another environment variable (OPENBAHN_USER_AGENT
) holding the user agent which is used for HTTP calls.
Philipp Ottolinger
1 2 3 4 | ## Not run:
openbahn_auth("YOUR_API_KEY_HERE")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.