verify_credentials function

Verify mastodon credentials

Verify mastodon credentials

verify_credentials(token, verbose = TRUE) verify_envvar(verbose = TRUE)

Arguments

  • token: bearer token, either public or user level
  • verbose: logical whether to display messages

Returns

Raise an error if the token is not valid. Return the response from the verification API invisibly otherwise.

Details

If you have created your token as an environment variable, use verify_envvar to verify your token.

Examples

## Not run: # read a token from a file verify_credentials(token) ## End(Not run)
  • Maintainer: David Schoch
  • License: MIT + file LICENSE
  • Last published: 2024-10-30