Skip to contents

Get recently updated/edited comments

Usage

comments_updates(
  comment_type = c("all", "reviews", "shouts"),
  type = c("all", "movies", "shows", "seasons", "episodes", "lists"),
  include_replies = FALSE,
  limit = 10L
)

Source

comments_updates() wraps endpoint comments/updates/: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 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.

Examples

# Recently updated comments
comments_updates()
#> # A tibble: 10 × 31
#>    type        id comment           spoiler review parent_id created_at         
#>    <chr>    <int> <chr>             <lgl>   <lgl>      <int> <dttm>             
#>  1 episode 641045 "The courtroom s… FALSE   FALSE          0 2024-02-01 08:26:36
#>  2 episode 640626 "Man, rest in pe… FALSE   FALSE          0 2024-01-31 10:09:02
#>  3 episode 641042 "A rather anticl… TRUE    FALSE          0 2024-02-01 08:14:34
#>  4 episode 640749 "* I had my doub… FALSE   FALSE          0 2024-01-31 20:24:03
#>  5 episode 464396 "it's finally ov… FALSE   FALSE          0 2022-04-29 05:42:14
#>  6 episode 348347 "Wow.  This one … FALSE   FALSE          0 2021-01-12 14:09:59
#>  7 episode 620425 "Jumping around … FALSE   FALSE          0 2023-11-28 05:33:23
#>  8 movie   641044 "T E R R I B L E… FALSE   FALSE          0 2024-02-01 08:22:17
#>  9 movie   630423 "Directing &amp;… FALSE   FALSE          0 2023-12-31 21:58:24
#> 10 show    273909 "So happy this h… FALSE   FALSE          0 2020-01-21 21:05:45
#> # ℹ 24 more variables: updated_at <dttm>, replies <int>, likes <int>,
#> #   user_rating <int>, username <chr>, private <lgl>, user_name <chr>,
#> #   vip <lgl>, vip_ep <lgl>, user_slug <chr>, title <chr>, year <int>,
#> #   trakt <chr>, slug <chr>, tvdb <chr>, imdb <chr>, tmdb <chr>,
#> #   episode_season <int>, episode_number <int>, episode_title <chr>,
#> #   episode_trakt <chr>, episode_tvdb <chr>, episode_imdb <chr>,
#> #   episode_tmdb <chr>