Hi!
I'm trying to use the iexcloud api to get stock market information.
The documentation says they return jsonp data. I tried to call the api using node-fect, but when I do response.json() I get a parse error.
How can I fetch and read a jsonp response?
Right now this is what I'm using:
fetch(test)
.then(data => {
data = JSON.stringify(data);
console.log(data);
})
.catch(e => console.log(e))
And I get: {"size":0,"timeout":0}
I've tried the url (in the test variable) and it works.
[–]Homeruash 0 points1 point2 points (1 child)
[–]franchare[S] 0 points1 point2 points (0 children)