if (FALSE) {
# mastodon API public access bearer token
mastodon_auth <- Authenticate(
"mastodon",
instance = "mastodon.social"
)
# mastodon API user access bearer token
mastodon_auth_user <- Authenticate(
"mastodon",
instance = "mastodon.social",
type = "user"
)
# if thread collection API token not required
mastodon_auth <- Authenticate("mastodon")
}
Run the code above in your browser using DataLab