rtoot | R Documentation |
This is a minimalistic interface for querying the Mastodon API. This function is for advanced users who want to query the Mastodon API for endpoints that the R functions are not yet implemented. Please also note that the API responses will not be parsed as tibble. Refer to the official API documentation for endpoints and parameters.
rtoot(
endpoint,
...,
params = list(),
token = NULL,
instance = NULL,
anonymous = FALSE
)
endpoint |
character, a Mastodon API endpoint. Currently, only endpoints using GET are supported |
... |
Name-value pairs giving API parameters. |
params |
list, API parameters to be submitted |
token |
user bearer token (read from file by default) |
instance |
character, the server name of the instance where the status is located. If |
anonymous |
some API calls do not need a token. Setting anonymous to TRUE allows to make an anonymous call if possible. |
a list
https://docs.joinmastodon.org/methods/
## Not run:
rtoot(endpoint = "api/v1/notifications")
rtoot(endpoint = "api/v1/notifications", limit = 8)
## same
rtoot(endpoint = "api/v1/notifications", params = list(limit = 8))
rtoot(endpoint = "api/v1/followed_tags")
## reimplement `get_timeline_public`
rtoot(endpoint = "api/v1/timelines/public", instance = "emacs.ch", local = TRUE, anonymous = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.