R/fse_commodities_by_key.R

Defines functions fse_commodities_by_key

Documented in fse_commodities_by_key

#' Commodities by read access key
#'
#' List commodities for the provided read access key.
#'
#' @param accesskey FSE read access key
#'
#' @template feed2
#'
#' @return The object with the following columns/tags:
#'
#' @return - `Location` -- ICAO of airport where the commodity is at
#' - `Commodity` -- Commodity name
#' - `Amount` -- Amount of `Commodity` at `Location` in kilograms
#'
#' @export


fse_commodities_by_key <- function(accesskey, ...) {
  fse_api(
    query = "commodities",
    search = "key",
    readaccesskey = accesskey,
    ...
  )$content
}
rfse/fse documentation built on Jan. 25, 2022, 5:54 a.m.