Creates a timer that keeps track of how many calls that has been called during a time period depending on the api configuration. If there can't be another call the function pauses R to do the call.

Share:

Description

Use this before function that uses api calls.

Usage

1
api_timer(api_url, calls = 1)

Arguments

api_url

The url to be passed to api_parameters to get api_configs.

calls

The number of calls that the functions should count per function call. Default is one.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.