verify_credentials: Verify mastodon credentials

View source: R/auth.R

verify_credentialsR 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)

rtoot documentation built on May 29, 2024, 2:14 a.m.