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:
8
example.js
Normal file
8
example.js
Normal 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)
|
||||
})
|
Reference in New Issue
Block a user