Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mad4ms
Copy link
Contributor

@mad4ms mad4ms commented Dec 12, 2023

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.

mad4ms and others added 4 commits April 5, 2023 15:47
- Refactored the API class constructor in `API.py` to improve parameter handling and configuration flexibility.

- Updated `_make_request` method for better parameter integration and added debugging prints for path and full URI.

- Modified `get_season_summaries` in `Handball.py` to support pagination. Implemented optional `start` and `limit` parameters to handle Sportradar's new API limits on data requests.

- Note: These updates address recent changes in Sportradar API, especially for Handball and potentially other sports.

Michael Adams <github.com/mad4ms>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant