View source: R/user_collection.R
user_collection | R Documentation |
Get a user's collected shows or movies
user_collection(
user = getOption("trakt_username"),
type = c("shows", "movies"),
unnest_episodes = FALSE,
extended = c("min", "full")
)
user |
|
type |
|
unnest_episodes |
|
extended |
|
This function wraps the API method
/users/:user_id/collection/: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.
The extended = "metadata"
API parameter is not implemented. This would
add media information media_type
, resolution
, audio
, audio_channels
and 3D
to the output, which may or may not be available. If this feature is important to
you, please open an issue on GitHub.
user_collection()
wraps endpoint users/:id/collection/:type.
Other user data:
user_comments()
,
user_history()
,
user_likes()
,
user_network()
,
user_profile()
,
user_ratings()
,
user_stats()
,
user_watched()
,
user_watchlist()
## Not run:
user_collection(user = "sean", type = "movies")
user_collection(user = "sean", type = "shows")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.