I'm working on a FreeCodeCamp project that involves making a JSONP call to the Twitchtv API(https://www.freecodecamp.com/challenges/use-the-twitchtv-json-api), and thought I've tried to make my code as simple and straightforward as possible:
var members =["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"];
var memberData = [];
$.getJSON('https://api.twitch.tv/kraken/streams/freecodecamp?callback=?', function(data) {
console.log(data);
});
It does not print anything. As far as I understand, the "?callback=?" portion of getJSON call makes it a JSONP request, so that shouldn't be an issue. The array of "members" isn't really in use right now, but I included it on the off chance that it's involved with the error. I'm not really sure what the issue is, any help is appreciated.