Checks the ratelimit values after the last request and stores the left requests in a global variable.
Usage
ratelimit(req)
Value
A variable for the current limits.
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.