get_context function

View statuses above and below this status in the thread

View statuses above and below this status in the thread

Query the instance for information about the context of a specific status. A context contains statuses above and below a status in a thread.

get_context(id, instance = NULL, token = NULL, anonymous = FALSE, parse = TRUE)

Arguments

  • id: character, local ID of a status in the database
  • instance: character, the server name of the instance where the status is located. If NULL, the same instance used to obtain the token is used.
  • token: user bearer token (read from file by default)
  • anonymous: some API calls do not need a token. Setting anonymous to TRUE allows to make an anonymous call if possible.
  • parse: logical, if TRUE, the default, returns a named list of two tibbles, representing the ancestors (statuses above the status) and descendants (statuses below the status). Use FALSE to return the "raw" list corresponding to the JSON returned from the Mastodon API.

Returns

context of a toot as tibble or list

Examples

## Not run: get_context(id = "109294719267373593", instance = "mastodon.social") ## End(Not run)
  • Maintainer: David Schoch
  • License: MIT + file LICENSE
  • Last published: 2024-10-30