Learn R Programming

rtweet (version 1.2.1)

set_scopes: Scopes of the OAuth2 token

Description

Permissions given to a token of a Twitter account. By default it allows everything.

Usage

set_scopes(read = TRUE, write = TRUE, tweet_moderate = TRUE, regenerate = TRUE)

Value

A character with all the possible scopes or those allowed.

Arguments

read

Allow to read.

write

Allow to write/manage?

tweet_moderate

Allow to hide or show replies to your Tweets.

regenerate

Allow to use the token for more than 2 hours.

References

https://developer.twitter.com/en/docs/authentication/oauth-2-0/authorization-code

Examples

Run this code
set_scopes()

Run the code above in your browser using DataLab