Open tylerwertman opened 1 year ago
Unfortunately, StockX has deprecated this API version so it has broken this code. Hopefully there will be an alternative solution discovered or StockX will give access to a public API.
Do you know why it works on the backend when I use it like this? I am getting info from StockX
const SneaksAPI = require('sneaks-api')
const sneaks = new SneaksAPI()
sneaks.getProducts("yeezy", 5, function(err, products){
console.log(products)
})
server.js:
react component:
console.log in server:
Seems it is hanging on StockX and not searching the other website. It woks fine in my backend as per npm website instructions but I want to implement front end functionality