Learn R Programming

rtoot (version 0.3.4)

verify_credentials: Verify mastodon credentials

Description

Verify mastodon credentials

Usage

verify_credentials(token, verbose = TRUE)

verify_envvar(verbose = TRUE)

Value

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

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.

Examples

Run this code
if (FALSE) {
# read a token from a file
verify_credentials(token)
}

Run the code above in your browser using DataLab