Hi,
I get my stream request and I add my channel in the variable: q=channel.
But I don’t see any information to know if the streaming is on live or whatever information?
That means, that channel “FreeCodeCamp” is not streaming ("stream": null).
Now you can make another ajax call with url from “channel” to get the picture and other info.
You don’t have to get list of people watching the stream.
You should take an array of Twitch channels (take these from exercise description ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"]) and show them on the page with info if the channel is streaming or not.
So you take each channel, and call Twitch API for it (you can do it with for loop for example):
let channels = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"]
for (let i = 0; i < channels.length; i++) {
// make ajax call with url: 'https://api.twitch.tv/kraken/streams/' + channel[i]
// make ajax call with url: 'https://api.twitch.tv/kraken/channels/' + channel[i]
// process received channel data and put it on the page
}
I’m feeling like I don’t do it myself, and I have some shame about that, so I did but I want to hide myself.
I’m feeling very bad about it.
Because look the code is to have the solution without personnal work