Implemented all known endpoints

Renamed ShiftRequest to ShiftStats
Implemented tests
Bumped version for release
This commit is contained in:
2018-04-25 21:28:51 -05:00
parent 9a7b4119cd
commit f730cf5345
4 changed files with 452 additions and 7 deletions

View File

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