I am trying to obtain data from twitch api. when the code below is run:
$.getJSON("https://api.twitch.tv/kraken/streams/freecodecamp?callback=?", function(data) {
console.log(data);
});
i get this error Failed to load resource: the server responded with a status of 400 ()
how do i get around this?