api_key: Get the api key for the header

Description Usage Arguments Details Value Examples

View source: R/api_key.R

Description

either use the one that is supplied, or find it from the .Renviron

Usage

1
api_key(key = NA)

Arguments

key

Users api key, Default: NA

Details

Will return the character string given, if given. If none is supplied, will look for it as environmental variable.

Value

Character string of the users api key.

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
  api_key
 }

## End(Not run)

DaveParr/dev.to.ol documentation built on Aug. 8, 2020, 4:31 p.m.