Returns rate limit information for Twitter access tokens.
rate_limit(token, query = NULL, rest = TRUE)
OAuth token. By default token = NULL
fetches a
non-exhausted token from an environment variable. Find instructions
on how to create tokens and setup an environment variable in the
tokens vignette (in r, send ?tokens
to console).
If null, returns entire rate limit request object as
data frame. otherwise, query returns specific values matching
the query of interest; e.g., query = "lookup/users"
returns
remaining limit for user lookup requests;
type = "followers/ids"
returns remaining limit for
follower id requests; type = "friends/ids"
returns
remaining limit for friend id requests.
Logical indicating whether to send request to REST API. At this time, this should always be TRUE.
Data frame with rate limit respones details. If query is specified, only relevant rows are returned.