R/user.R

Defines functions user

Documented in user

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