create_token: get a bearer token for the mastodon api
Description
get a bearer token for the mastodon api
Usage
create_token(client, type = "public", browser = TRUE)
Value
a mastodon bearer token
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
References
https://docs.joinmastodon.org/client/authorized/