rtweet (version 2.0.0)

invalidate_bearer: Invalidate bearer token

Description

Invalidate the bearer token automatically if you know the API key and API secret.

Usage

invalidate_bearer(api_key, api_secret, client = NULL, token = NULL)

Arguments

api_key, api_secret

API key and secret. Deprecated in favor of client_* arguments.

client

Which client app will be used, see rtweet_client() for details.

token

Expert use only. Use this to invalidate a specific bearer token created with rtweet_app(). If NULL the default authentication mechanism is invalidated.

References

https://developer.twitter.com/en/docs/authentication/api-reference/invalidate_bearer_token https://developer.twitter.com/en/docs/authentication/api-reference/invalidate_access_token