R/bhl_getpartmetadata.R

Defines functions bhl_getpartmetadata

Documented in bhl_getpartmetadata

#' Return a list of an item's pages.
#'
#' @export
#' @param partid The identifier of an individual part (article, chapter, etc)
#' (numeric)
#' @inheritParams bhl_getcollections
#' @examples \dontrun{
#' bhl_getpartmetadata(10409)
#' }
bhl_getpartmetadata <- function(partid, key = NULL, ...) {

  args <- bhlc(list(op = "GetPartMetadata", apikey = check_key(key),
                    format = as_f("list"), id = partid))
  bhl_GET("list", args, ...)
}

Try the rbhl package in your browser

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

rbhl documentation built on May 13, 2021, 9:07 a.m.