Query the instance for a specific user
get_account(id, instance = NULL, token = NULL, anonymous = FALSE, parse = TRUE)
an account
character, Local ID of a user (this is not the username)
character, the server name of the instance where the status is located. If NULL
, the same instance used to obtain the token is used.
user bearer token (read from file by default)
some API calls do not need a token. Setting anonymous to TRUE allows to make an anonymous call if possible.
logical, if TRUE
, the default, returns a tibble. Use FALSE
to return the "raw" list corresponding to the JSON returned from the Mastodon API.
if (FALSE) {
get_account("109302436954721982")
}
Run the code above in your browser using DataLab