johnwmillr / SportradarAPIs

Python wrapper for the Sportradar APIs ⚽️🏈
MIT License
47 stars 19 forks source link

Enhancement: API Functionality and Pagination Support in Handball Summaries #24

Open mad4ms opened 6 months ago

mad4ms commented 6 months ago

Pull Request Overview

This pull request introduces significant enhancements to the Sportradar API's functionality, specifically targeting improvements in parameter handling and the integration of pagination in Handball summaries. These changes aim to adapt to recent updates in the Sportradar API and provide more flexibility and control to users of the API wrapper.

Key Changes

  1. Refactoring of API Class Constructor (API.py):

    • Improved parameter handling and configuration flexibility.
    • _make_request now supports additional parameters for pagination.
    • Integration of API key in request parameters.
  2. Pagination in Handball Summaries (Handball.py):

    • Modified get_season_summaries method to support pagination.
    • Implemented optional start and limit parameters, addressing Sportradar's new API limits on data requests.
    • Cleaned up methods not supported by API.

Additional Notes

These updates are in response to recent changes in Sportradar's API, especially regarding Handball and potentially affecting other sports. The primary goal is to ensure the API wrapper remains functional and efficient, adhering to the latest API standards set by Sportradar.