Learn R Programming

priceR (version 1.0.2)

append_exchangeratehost_access_key: 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)

Value

The input URL with API access key appended as a URL parameter

Arguments

url

A URL representing an API endpoint

Examples

Run this code
if (FALSE) {
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"

}


Run the code above in your browser using DataLab