This function retrieves box score data from the NBA Stats API for given game IDs using a
specified endpoint. It creates batches of game_ids and pauses between batches to avoid timeout
issues.
Usage
fetch_box_score(measure_type, game_ids, batch_size = 100, pause_seconds = 15)
Arguments
- measure_type
A vector of measure types for various box score data.
- game_ids
A character vector of game IDs.
- batch_size
Number of requests before pausing (default: 100)
- pause_seconds
Number of seconds to pause between batches (default: 15)
Value
A data frame containing the box score data for the specified game IDs.