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

Ok6245 support api v2.1 #17

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

Commits on May 10, 2024

  1. Refactor validFeeds array

    - change simple array of feeds to array of feed => feed-settings (idea from mysportsfeeds-node wrapper)
    - retrofit new array format to all API versions
    - update BaseApi methods to process new array format
    - subclasses of BaseApi don't need to override __determineUrl() anymore
    - updated __determineUrl() avoids duplication of feed names
    - feed list for each API version updated as best I can to match online API Documentation
    ok6245 committed May 10, 2024
    Configuration menu
    Copy the full SHA
    f0fea52 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. Add module API_v2_1.php, support for missing v2.1 feeds

    - new module only needs the v2.1 validFeeds array, in new refactored format
    - feed list taken from online API Documentation for v2.1 as best I can
    ok6245 committed May 11, 2024
    Configuration menu
    Copy the full SHA
    c27ae17 View commit details
    Browse the repository at this point in the history
  2. Public methods MySportsFeeds::getHTTPCode(), getURL()

    Convenient for testing/debugging
    ok6245 committed May 11, 2024
    Configuration menu
    Copy the full SHA
    48a7bd9 View commit details
    Browse the repository at this point in the history
  3. Internally, pass caller parameters as ordinary key => value array ins…

    …tead of "..." token.
    
    We convert the ellipsis ... token format to key/value array everywhere parameters are needed anyway. Just do it once.
    ok6245 committed May 11, 2024
    Configuration menu
    Copy the full SHA
    ec6c389 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Required parm like 'date' with empty value should produce a syntax er…

    …r msg, not return 404 response.
    
    Standardize verbose output with print() and E-O-L appropriate for running environment cli or web server.
    ok6245 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    d98f481 View commit details
    Browse the repository at this point in the history
  2. Update wrapper version to 2.1.1, require PHP >= 7.4.0

    - MySportsFeeds::buildVersion = '2.1.1' to show support for API v2.1
    - remove unneeded "use" statements from MySportsFeeds
    - update composer.json for required PHP version from 5.6 to 7.4.0
    - update README.md with proposed new Release number 2.1.1
    ok6245 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    e39154c View commit details
    Browse the repository at this point in the history