apiKey:'<YOUR_API_KEY>',// Register for a free api key: http://api.football-data.org/register
}).then(function(_data){
//on success
}).catch(function(_data){
//on error
});
getFixture
//Show one fixture.
footballdataFactory.getFixture({
id:'<FIXTURE_ID>',
apiKey:'<YOUR_API_KEY>',// Register for a free api key: http://api.football-data.org/register
}).then(function(_data){
//on success
}).catch(function(_data){
//on error
});
getFixtures
//List fixtures across a set of soccerseasons.
footballdataFactory.getFixtures({
timeFrame:'<TIMEFRAME>',// (optional) The value of the timeFrame argument must start with either 'p' for past or 'n' for next. It is followed by a number in the range 1-99.
league:'<LEAGUE_CODE>',// (optional) A (list of, comma separated) league-code(s). Default is unset. Get all league codes at http://api.football-data.org/docs/latest/index.html
apiKey:'<YOUR_API_KEY>',// Register for a free api key: http://api.football-data.org/register
}).then(function(_data){
//on success
}).catch(function(_data){
//on error
});
//List all fixtures for a certain soccerseason.
footballdataFactory.getFixturesBySeason({
id:'<SEASON_ID>',
timeFrame:'<TIMEFRAME>',// (optional) The value of the timeFrame argument must start with either 'p' for past or 'n' for next. It is followed by a number in the range 1-99.
matchday:'<MATCHDAY>',// (optional) The current/last matchday is taken per default
apiKey:'<YOUR_API_KEY>',// Register for a free api key: http://api.football-data.org/register
}).then(function(_data){
//on success
}).catch(function(_data){
//on error
});
//Show all fixtures for a certain team.
footballdataFactory.getFixturesByTeam({
id:'<TEAM_ID>',
season:'<SEASON>',// (optional) Defaults to the current year, given as 4 digit like '2015'
timeFrame:'<TIMEFRAME>',// (optional) The value of the timeFrame argument must start with either 'p' for past or 'n' for next. It is followed by a number in the range 1-99.
venue:'<VENUE>',// (optional) Valid values: `home` and `away`. Default is unset.