Help with twitch.tv project api

Help with twitch.tv project api
0

#1

Hey guys I have been working with twitch.tv project for about 3 days now. I’ve created an account in the twitch website. After following through their API page, a client ID has been generated for “Twitch-Streamers435” app. Now I don’t have any idea what to do after this. I mean I tried using some urls like
"https://wind-bow.gomix.me/twitch-api/streams/featured?callback=?" but still of no use. I’m not able to receive json object by passing that url in my “.getJSON(…)” function. Step by step explanation of the API usage would be appreciated.


#2

You didn’t have to register to Twitch because FCC provides a proxy. Anyway. In order to get the data for each user you’ll have to use the API endpoints like this:
https://wind-bow.glitch.me/twitch-api/streams/[USERNAME]
https://wind-bow.glitch.me/twitch-api/channels/[USERNAME]
https://wind-bow.glitch.me/twitch-api/users/[USERNAME]
where [USERNAME] is a Twitch user.

For example to get FCC’s channel info you’ll request the data from
https://wind-bow.glitch.me/twitch-api/channels/freecodecamp _(if you click it you’ll see the JSON) .

Let me know how it goes.


#3

ha! At last your suggestion worked for me. Thanks a lot!