football-api
v0.1.1
Published
Simple Node.js API abstraction for football-api.com
Downloads
3
Readme
Football-API.js
const FootballAPI = require('football-api')
const fapi = new FootballAPI('*YOUR AUTHORIZATION KEY*')
// Get all matches
fapi.getMatches().then((data) => {
console.log(data.body)
}).catch(err => console.log(err))
// Get a team
fapi.getTeam(9002).then((data) => console.log(data.body.statistics[0]))
// Get a commentary
fapi.getCommentary(1967661).then((data) => {
console.log(util.inspect(data.body, false, null))
}).catch((err) => console.log(err))