I think the Twitch JSON API project is broken

Hello,

Revisiting my portfolio for the first time in a long while, I found that the Twitch JSON API project had broken. Tried to fix it by following the following instructions:


But it doesn’t seem to be working…

The request https://twitch-proxy.freecodecamp.rocks/helix/users?login=FreeCodeCamp returns {“error”:“Unauthorized”,“status”:401,“message”:“Invalid OAuth token”}

Help? Thoughts?

Hi,
You have to register on Twitch.tv.
After you registered, you will get a client-id and a client-secret. These need to get request from twitch.tv. Once you modified your ajax call, the rest of the code will works.
Here is my modified code for reference on Codepen.
And I deployed the code here.