0.1.4 • Published 7 years ago

football-data-api v0.1.4

Weekly downloads
5
License
MIT License
Repository
github
Last release
7 years ago

How to use

first version

var Football = require('football-data-api');
var token = 'YOUR_TOKEN'
var options = { 
    url: 'http://api.football-data.org/v1/soccerseasons/', 
    headers: {'X-Auth-Token': token},
    shortNameLeague: "BL1",
    shortNameTeam: "HSV",
    nextGamesView: 4,
    lastGamesView: 4,
};

var fball = new Football(options, init);

function init() {

    console.log(JSON.stringify(fball.fixtures.getNextGames(), null, 4));
}
OptionDescription
X-Auth-TokenRequired You can get it from here.
shortNameLeagueRequired Short name of your League
shortNameTeamRequired Short name of your team. Team must be in the League.

Names for the different leagues:

Short NameLong Name
AALAustralian A-League
CLChampions League 2017/18
SBSerie B 2017/18
DFBDFB-Pokal 2017/18
PPLPrimeira Liga 2017/18
SASerie A 2017/18
PDPrimera Division 2017
BL22. Bundesliga 2017/18
BL11. Bundesliga 2017/18
FL2Ligue 2 2017/18
FL1Ligue 1 2017/18
DEDEredivisie 2017/18
EL2League Two 2017/18
EL1League One 2017/18
ELCChampionship 2017/18
PLPremier League 2017/18
BSACampeonato Brasileiro da Série A
0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.13

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago