beevelop / football-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 100.0%