Stuck at TwitchTV Project

Stuck at TwitchTV Project
0

#1

Hello Campers!
I am totally stuck at TwitchTv Project. :cold_sweat: . Since yesterday, I am just looking at the API docs and I wasn’t able to gain any insight about how to use it. The project says that I have to use the harcoded JSON to display the data. But I don’t know what to display (i.e. relevant info). It would be really great if someone would point me to an appropriate and updated Resource/ Documentation/ Article for the same. If there’s some other API that I could use in place of TwitchTv one, that’d work too. :smiley:
Thanks in advance!
Regards,
Priyank Kharat.


#2

Read this bit:

Combine this knowledge with instruction #9:

UPDATE: Due to a change in conditions on API usage explained here Twitch.tv now requires an API key, but we’ve built a workaround. Use https://wind-bow.glitch.me/twitch-api instead of twitch’s API base URL (i.e. https://api.twitch.tv/kraken ) and you’ll still be able to get account information, without needing to sign up for an API key.


#3

Thanks for the info!
But the link New API Link is still giving a 404 error. So I can’t query to it.


#4

The answers you seek are in the links I provided. From the first:

Here’s an example call to fetch Free Code Camp’s Twitch channel data:
$.getJSON('https://api.twitch.tv/kraken/streams/freecodecamp?callback=?’, function(data) {
console.log(data);
});

From the second:

Use https://wind-bow.glitch.me/twitch-api instead of twitch’s API base URL (i.e. https://api.twitch.tv/kraken )


#5

Thank you so much!!
Finally Completed the project. Here’s the Project Link.
Your advice was a big help! :blush: