JSFiddle - React, Tailwind, and code Playground
by tyrw
JavaScript
(function() {
jQuery(function() {
var id;
id = 123456;
return $.ajax({
url: "https://openapi.etsy.com/v2/shops/8885473/listings/active.js?api_key=br2rqhq13l89wyj3ikg1acm5",
dataType: 'jsonp',
success: function(res, status, xhr) {
alert(res.results.slice(0, 4));
window[id] = res.results.slice(0, 4);
return console.log(window[id]);
}
}, false);
});
}).call(this);