rate_limit: Rate limit helpers

Description Usage Arguments References See Also Examples

View source: R/rate_limit.R

Description

You should not need to use these function in the usual operation of rtweet because all paginated functions will wait on your behalf if you set retryonratelimit = TRUE.

Usage

1
2
3
4
5
rate_limit(resource_match = NULL, token = NULL)

rate_limit_reset(endpoint, token = NULL)

rate_limit_wait(endpoint, token = NULL)

Arguments

resource_match

An optional regular expression used to filter the resources listed in returned rate limit data.

token

Expert use only. Use this to override authentication for a single API call. In most cases you are better off changing the default for all calls. See auth_as() for details.

endpoint

Name of twitter endpoint like "lookup/users", "/media/upload", or "/feedback/show/:id". #' @references https://developer.twitter.com/en/docs/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status

References

https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status

See Also

Other tokens: create_token(), get_token()

Examples

1
2
3
4
## Not run: 
rate_limit()

## End(Not run)

mkearney/rtweet documentation built on Sept. 29, 2021, 12:01 p.m.