Twitch API for loop is not logging any data. I do not have channel ID as I donot have an account there. This project is very confusing and their updates and changes makes it even harder
$(document).ready(function(){
var streams = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"];
var url= "https://wind-bow.gomix.me/twitch-api/streams/freecodecamp?callback=?";
$.getJSON(url,function(data){
if(data.stream === null){
$("#fccstatus").html("Freecodecamp is Offline");
} else{
$("#fccstatus").html("Freecodecamp is Online");
}
});
var followerUrl = "https://wind-bow.gomix.me/twitch-api/streams/ESL_SC2?callback=?";
//https://wind-bow.gomix.me/twitch-api/channels/'+person+'?callback=?'
$.getJSON(followerUrl, function(data2){
//console.log(data2);
});
for (var i=0; i<streams.length; i++){
$.ajax({
type:'GET',
url:'https://wind-bow.gomix.me/twitch-api/streams/'+ streams[i]+'?callback=?',
success: function(datai){
console.log(datai);
}
})
}//end of for loop
})