Skip to contents

Get items (comments, lists) a user likes

Usage

user_likes(type = c("comments", "lists"))

Source

user_likes() wraps endpoint users/likes/:type (Authentication required).

Arguments

type

character(1) ["comments"]: One of "comments", "lists".

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

# Get liked lists (only if there's a client secret set)
# See ?trakt_credentials
if (trakt_credentials()[["client_secret"]]) {
  user_likes("lists")
}