R/getScreeningSessionsList.R

Defines functions getScreeningSessionsList

Documented in getScreeningSessionsList

#' get screening session list
#'
#' This API allows the user to screen a file using the API
#'
#' @param dataSetVerID the dataset version id
#' @param year filter by year, optional
#' @param country filter by country, optional
#'
#' @return The details of the sessions
#'
#' @examples
#' \dontrun{
#' getScreeningSessionsList(145)
#' getScreeningSessionsList(145, year = 2020)
#' }
#' @export
getScreeningSessionsList <- function(dataSetVerID, year = NULL, country = NULL) {
  url <- datsu_api(
    paste0("getScreeningSessionsList/", dataSetVerID),
    year = year,
    country = country
  )

  out <- datsu_get(url)

  out
}

Try the icesDatsu package in your browser

Any scripts or data that you put into this service are public.

icesDatsu documentation built on Oct. 25, 2024, 1:06 a.m.