football-api

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1

Package Sidebar

Install

npm i football-api

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • beevelop