Files
node-shiftstats/example.js
Parnic f730cf5345 Implemented all known endpoints
Renamed ShiftRequest to ShiftStats
Implemented tests
Bumped version for release
2018-04-25 21:28:51 -05:00

12 lines
303 B
JavaScript

const ShiftRequest = require('./index')
let s = new ShiftRequest()
// with promises
s.login().then(() => {
return s.divisionStandings(4702)
}).then(async (standings) => {
console.log(standings.teams)
// with async/await
console.log((await s.gameGoals(166658, 'home')).home_goals)
})