verify_credentials | R Documentation |
Verify mastodon credentials
verify_credentials(token, verbose = TRUE)
verify_envvar(verbose = TRUE)
token |
bearer token, either public or user level |
verbose |
logical whether to display messages |
If you have created your token as an environment variable, use verify_envvar
to verify your token.
Raise an error if the token is not valid. Return the response from the verification API invisibly otherwise.
## Not run:
# read a token from a file
verify_credentials(token)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.