Implemented all known endpoints
Renamed ShiftRequest to ShiftStats Implemented tests Bumped version for release
This commit is contained in:
@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user