R/fse_statistics_by_key.R

Defines functions fse_statistics_by_key

Documented in fse_statistics_by_key

#' Statistics by read access key
#'
#' User statistics such as financials, number of flights and miles flown.
#'
#' @param accesskey FSE read access key
#'
#' @template feed2
#'
#' @return The object with the following columns/tags:
#'
#' @return - `Personal_balance` -- Money in the wallet
#' - `Bank_balance` -- Money in the bank
#' - `flights` -- Number of flights made to date
#' - `Total_Miles` -- Total number of NMs flown
#' - `Time_Flown` -- Total time in the air in `hh:mm`
#'
#' @export

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