0.1.1 • Published 7 years ago

football-api v0.1.1

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

npm Gemnasium js-standard-style Beevelop

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))
0.1.1

7 years ago