comments_trending: Get trending or recently made comments

View source: R/comments_trending.R

comments_trendingR Documentation

Description

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
)

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 than 0 and will be coerced via as.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.

Source

comments_trending() wraps endpoint comments/trending/:comment_type/:type?include_replies=.

comments_recent() wraps endpoint comments/recent/:comment_type/:type?include_replies=.

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()

Examples

## Not run: 
# Trending reviews
comments_trending("reviews")

# Recent shouts (short comments)
comments_recent("shouts")

## End(Not run)

jemus42/tRakt documentation built on April 19, 2024, 3:25 a.m.