verify_credentials {rtoot} | R Documentation |
Verify mastodon credentials
Description
Verify mastodon credentials
Usage
verify_credentials(token, verbose = TRUE)
verify_envvar(verbose = TRUE)
Arguments
token |
bearer token, either public or user level |
verbose |
logical whether to display messages |
Details
If you have created your token as an environment variable, use verify_envvar
to verify your token.
Value
Raise an error if the token is not valid. Return the response from the verification API invisibly otherwise.
Examples
## Not run:
# read a token from a file
verify_credentials(token)
## End(Not run)
[Package rtoot version 0.3.4 Index]