supreme-api
supreme-api copied to clipboard
TypeError: callback is not a function
Hello When trying to call the watch for new items this pops out.
supreme.onNewItem(5, (product, err) => { if (err) { console.log(err); return err; } console.log('New Release: ' + item.name); });
TypeError: callback is not a function
/node_modules/supreme-api/index.js:227:13
at Request._callback /node_modules/supreme-api/index.js:52:22)
at Request.self.callback
node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
Thanks for the awsom api 👍
Having exactly the same problem.Any solution?
Still no update?Or at least a working api call?
im having same problem...
https://github.com/Logfro/supreme-api <--- Working version
i got the same error with that version....
Oh i see, onNewItem hasnt been created yet.