R/nyt-archive.r

Defines functions nyt_archive

Documented in nyt_archive

#' Archive API
#'
#' The Archive API provides lists of NYT articles by month
#'   going back to 1851.
#'
#' @param year month integer integer /{year}/{month}.json
#' @return Response object
#' @export
nyt_archive <- function(year, month) {
    basepath <- paste0("archive/v1")
    path <- paste0(year, "/", month, ".json")
}
naushad2007/72 documentation built on Dec. 22, 2021, 12:03 a.m.