manrajgrover / football-cli

⚽ Command line interface for Hackers who love football
MIT License
1.07k stars 80 forks source link

Add support for penalty scoreline #47

Open manrajgrover opened 6 years ago

manrajgrover commented 6 years ago

Description

Currently, only end time scores are shown. For knockout stages, we should add penalty scoreline as well.

Versions

People to notify

@ManrajGrover

manrajgrover commented 6 years ago

Adding payload here for reference:

{
    "_links": {
        "self": {
            "href": "http://api.football-data.org/v1/competitions/467/fixtures"
        },
        "competition": {
            "href": "http://api.football-data.org/v1/competitions/467"
        }
    },
    "count": 11,
    "fixtures": [{
        "_links": {
            "self": {
                "href": "http://api.football-data.org/v1/fixtures/165122"
            },
            "competition": {
                "href": "http://api.football-data.org/v1/competitions/467"
            },
            "homeTeam": {
                "href": "http://api.football-data.org/v1/teams/760"
            },
            "awayTeam": {
                "href": "http://api.football-data.org/v1/teams/808"
            }
        },
        "date": "2018-07-01T14:00:00Z",
        "status": "FINISHED",
        "matchday": 4,
        "homeTeamName": "Spain",
        "awayTeamName": "Russia",
        "result": {
            "goalsHomeTeam": 1,
            "goalsAwayTeam": 1,
            "halfTime": {
                "goalsHomeTeam": 1,
                "goalsAwayTeam": 1
            },
            "extraTime": {
                "goalsHomeTeam": 0,
                "goalsAwayTeam": 0
            },
            "penaltyShootout": {
                "goalsHomeTeam": 3,
                "goalsAwayTeam": 4
            }
        },
        "odds": null
    }]
}