check_rate_limit_header: Check Rate Limit Status and Sleep If Need Be - this is an...

View source: R/twitter.R

check_rate_limit_headerR Documentation

Check Rate Limit Status and Sleep If Need Be - this is an updated function for API v2.0

Description

Check Rate Limit Status and Sleep If Need Be - this is an updated function for API v2.0

Usage

check_rate_limit_header(res, threshold = 2)

Arguments

res

The result of an httr call to the twitter API.

threshold

The remaining API calls below which to force a System Sleep.

Value

binary indicator of whether the API calls had to wait


snfagora/CivicTwitter documentation built on Nov. 22, 2022, 4:10 p.m.