api_delay | R Documentation |
A function to control the wait time between API calls to OpenDota, user needs to specify the start time of a call to the API. The wait time is 1s by default since OpenDota ask you to restrict your call to 1 call per second with a free API.
api_delay(start_time, wait_time = 1)
start_time |
Time of last API call |
wait_time |
Wait time between API calls |
No return. The function put the system to sleep if the time between your last API call to the current one is less than 1s.
## Not run: api_key(start_time, wait_time) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.