airbnbapi
airbnbapi copied to clipboard
destructure error with airbnb.getOwnListings()
I am getting the following destructure error on getOwnListings method
var ol = airbnb.getOwnListings().then( v => { console.log(v) } ) .catch( e => { console.log(e) } ) undefined TypeError: Cannot destructure property
token
of 'undefined' or 'null'. at AirApi.getOwnListings (C:\mynode\node_modules\airbnbapijs\build\main.js:415:25) at repl:1:17 at Script.runInThisContext (vm.js:122:20) at REPLServer.defaultEval (repl.js:332:29) at bound (domain.js:402:14) at REPLServer.runBound [as eval] (domain.js:415:12) at REPLServer.onLine (repl.js:642:10) at REPLServer.emit (events.js:203:15) at REPLServer.EventEmitter.emit (domain.js:448:20) at REPLServer.Interface._onLine (readline.js:308:10) at REPLServer.Interface._line (readline.js:656:8) at REPLServer.Interface._ttyWrite (readline.js:937:14) at REPLServer.self._ttyWrite (repl.js:715:7) at ReadStream.onkeypress (readline.js:184:10) at ReadStream.emit (events.js:198:13) at ReadStream.EventEmitter.emit (domain.js:448:20) at emitKeys (internal/readline.js:424:14) at emitKeys.next () at ReadStream.onData (readline.js:1075:36) at ReadStream.emit (events.js:198:13) at ReadStream.EventEmitter.emit (domain.js:448:20) at addChunk (_stream_readable.js:288:12)