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.
This commit is contained in:
2018-04-24 22:35:55 -05:00
committed by Parnic
commit b3f05f8329
6 changed files with 196 additions and 0 deletions

8
example.js Normal file
View File

@ -0,0 +1,8 @@
const ShiftRequest = require('./index')
let s = new ShiftRequest()
s.login().then(() => {
return s.divisionStandings(4702)
}).then((standings) => {
console.log(standings.teams)
})