I’m trying to get a working example of the https://adobexdplatform.com/plugin-docs/tutorials/how-to-make-network-requests/ guide. But my JSON results turn op empty.
I’ve been trying this for a while. Seems like I’m missing something?
console.log(getData("https://dog.ceo/api/breeds/image/random/"));
function getData(url) {
return fetch(url)
.then(function (response) {
return response;
})
}
This prints out:
{}