Get items (comments, lists) a user likes
Usage
user_likes(type = c("comments", "lists"))
Source
user_likes()
wraps endpoint users/likes/:type (Authentication required).
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.
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")
}