create_token function

get a bearer token for the mastodon api

get a bearer token for the mastodon api

create_token(client, type = "public", browser = TRUE)

Arguments

  • client: rtoot client object created with get_client
  • type: one of "public" or "user". See details
  • browser: if TRUE (default) a browser window will be opened to authenticate, else the URL will be provided so you can copy/paste this into the browser yourself

Returns

a mastodon bearer token

Details

TBA

References

https://docs.joinmastodon.org/client/authorized/

  • Maintainer: David Schoch
  • License: MIT + file LICENSE
  • Last published: 2024-10-30