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
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.
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.
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
Refactoring of API Class Constructor (API.py):
Pagination in Handball Summaries (Handball.py):
get_season_summaries
method to support pagination.start
andlimit
parameters, addressing Sportradar's new API limits on data requests.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.