user_likes | R Documentation |
Get items (comments, lists) a user likes
user_likes(type = c("comments", "lists"))
type |
|
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.
user_likes()
wraps endpoint users/likes/:type (Authentication required).
Other user data:
user_collection()
,
user_comments()
,
user_history()
,
user_network()
,
user_profile()
,
user_ratings()
,
user_stats()
,
user_watched()
,
user_watchlist()
# Get liked lists (only if there's a client secret set)
# See ?trakt_credentials
if (trakt_credentials()[["client_secret"]]) {
user_likes("lists")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.