R/book.R

Defines functions book

Documented in book

#' Query book from the Goodreads API 
#'
#' Query for Goodreads books based on IDs.
#' @param id Goodreads ID of the book
#' @return A \code{data.frame} of book with corresponding information
#'
#' @export
book <- function(id) {
    tbl <- NULL
    ggr <- goodreads_GET ('book/show', id=id)
    tbl <- goodreads_parse_book(ggr)
    tbl
}
Famguy/rgoodreads documentation built on May 6, 2019, 4:09 p.m.