Get trending or recently made comments
Usage
comments_trending(
comment_type = c("all", "reviews", "shouts"),
type = c("all", "movies", "shows", "seasons", "episodes", "lists"),
include_replies = FALSE,
limit = 10L
)
comments_recent(
comment_type = c("all", "reviews", "shouts"),
type = c("all", "movies", "shows", "seasons", "episodes", "lists"),
include_replies = FALSE,
limit = 10L
)Source
comments_trending() wraps endpoint /comments/trending/:comment_type/:type?include_replies=.
comments_recent() wraps endpoint /comments/recent/:comment_type/:type?include_replies=.
Arguments
- comment_type
character(1) ["all"]: The type of comment, one of "all", "reviews" or "shouts".- type
character(1) ["all"]: The type of media to filter by, one of "all", "movies", "shows", "seasons", "episodes" or "lists".- include_replies
logical(1) [FALSE]: Whether to include replies.- limit
integer(1) [10L]: Number of items to return. Must be greater than0and will be coerced viaas.integer().
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 comment methods:
comments_comment(),
comments_updates(),
media_comments,
user_comments(),
user_list_comments()
Other comment methods:
comments_comment(),
comments_updates(),
media_comments,
user_comments(),
user_list_comments()
