user_likes: Get items (comments, lists) a user likes

View source: R/user_likes.R

user_likesR Documentation

Get items (comments, lists) a user likes

Description

Get items (comments, lists) a user likes

Usage

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

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.

Source

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

See Also

Other user data: user_collection(), user_comments(), user_history(), user_network(), user_profile(), user_ratings(), user_stats(), user_watched(), user_watchlist()

Examples

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

jemus42/tRakt documentation built on Aug. 7, 2024, 6:32 a.m.