save_key: Save key Function

Description Usage Arguments Examples

Description

This function allows you to save your api key to a .txt file, which you can read it from in the other functions.

Usage

1
save_key(org, app_key, app_id = NULL, writepath = getwd())

Arguments

org

code of transport authority the key is for (tfl for Transport for London, tfgm for Transport for Greater Manchester)

app_key

the API key for your application

app_id

the API id for your application (TfL only)

writepath

the path where you want to save the file, defaults to working directory

Examples

1
save_key("tfl", "0f2fd687", "6c23ac1o45cfec9hhd6bf32b393a84do3") #these are not real api key/id values

maczokni/transportR documentation built on May 30, 2019, 9:57 p.m.