RDocumentation
Moon
Learn R
Search all packages and functions
rtweet (version 0.1.4)
fetch_tokens: fetch_tokens
Description
Fetches tokens based on remaining rate limit. Use this function to cycle through multiple access tokens until rate limit remaining is greater than 0.
Usage
fetch_tokens(tokens, query, sleep = FALSE)
Arguments
tokens
List of oauth tokens
query
character vector, Twitter API query of interest
sleep
logical indicating whether to force system sleep if rate limit is exhausted. defaults to
sleep = FALSE
.
Value
token with non-exhausted rate limit