Files
node-shiftstats/example.js
Parnic b3f05f8329 Initial commit
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.
2018-04-24 22:36:46 -05:00

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