api_delay: API Delay function

Description Usage Arguments Value Examples

View source: R/api_delay.R

Description

Function that controls the delay between API calls to opendota, user can specify the wait_time, but opendota asks you to limit yourself to 1 call per second

Usage

1
api_delay(start_time, wait_time = 1)

Arguments

start_time

Time of last API call

wait_time

Desired wait time between API calls

Value

There is no return, it simply sleeps the system for whatever time needed to reach wait_time

Examples

1
2
3
4
## Not run: 
api_delay(start_time, wait_time)

## End(Not run)

opendotaR documentation built on May 2, 2019, 1:14 p.m.