Basic structure and proof of concept for talking with Shift via Node. Will eventually expose the remaining (known) APIs, but this was to get myself familiar with promises, http, streams, etc.
9 lines
193 B
JavaScript
9 lines
193 B
JavaScript
const ShiftRequest = require('./index')
|
|
|
|
let s = new ShiftRequest()
|
|
s.login().then(() => {
|
|
return s.divisionStandings(4702)
|
|
}).then((standings) => {
|
|
console.log(standings.teams)
|
|
})
|