ratelimit: Generate the ratelimit indicator

View source: R/ratelimit.R

ratelimitR Documentation

Generate the ratelimit indicator

Description

Checks the ratelimit values after the last request and stores the left requests in a global variable.

Usage

ratelimit(req)

Arguments

req

value returned from the GET function, used internally in other functions

Details

Requests to the Strava API are rate-limited. The default rate limit allows 600 requests every 15 minutes, with up to 30,000 requests per day. See the documentation at https://strava.github.io/api/#access.

Value

A variable for the current limits.


fawda123/rStrava documentation built on March 27, 2024, 3:16 p.m.