append_exchangeratehost_access_key {priceR} | R Documentation |
Retrieves exchangerate.host (forex) API key from R environment variables and appends to API call
Description
Retrieves exchangerate.host (forex) API key from R environment variables and appends to API call
Usage
append_exchangeratehost_access_key(url)
Arguments
url |
A URL representing an API endpoint |
Value
The input URL with API access key appended as a URL parameter
Examples
## Not run:
base_Url <- "https://api.exchangerate.host/latest?base=USD"
base_Url %>% append_exchangeratehost_access_key
# [1] "https://api.exchangerate.host/latest?base=USD&access_key=7e5e3140140bd8e4f4650cc41fc772c0"
## End(Not run)
[Package priceR version 1.0.1 Index]