Skip to contents

Get comments on a user-created list

Usage

user_list_comments(
  user = getOption("trakt_username"),
  list_id,
  sort = c("newest", "oldest", "likes", "replies"),
  extended = c("min", "full")
)

Source

user_list_comments() wraps endpoint users/:id/lists/:list_id/comments/:sort.

Arguments

user

character(1): Target username (or slug). Defaults to getOption("trakt_username"). Can also be of length greater than 1, in which case the function is called on all user values separately and the result is combined.

list_id

The list identifier, either trakt ID or slug of the list. Can be optained via the website (URL slug) or e.g. user_lists.

sort

character(1) ["newest"]: Comment sort order, one of "newest", "oldest", "likes" or "replies".

extended

character(1): Either "min" (API default) or "full". The latter returns more variables and should generally only be used if required. See vignette("finding-things") for more details.

Value

A tibble(). If the function has a limit parameter (defaulting to 10), this will be the (maximum) number of rows of the tibble. If there are no results (or the API is unreachable), an empty tibble() is returned.

Examples

if (FALSE) { # \dontrun{
user_list_comments("donxy", "1248149")
} # }