Hello Guys, I’m working on the Twitch.tv project, I can’t get the names, if I console.log to test it says: “The parameter ‘name’ was malformed: the value must match the regular expression /^[a-zA-Z0-9][a-zA-Z0-9_]*$/”.
When I paste that link into a browser url I’m getting an error message that the site might be temporarily down or have moved permanently to a new address, I get the same error message in my console when I try to use the link in codepen - not sure what I’m doing wrong?
you don’t need to add callback=? at the end, since provided api supports CORS
your code sends requests to invalid api endpoints
valid routes:
for /users/:user => 'https://wind-bow.gomix.me/twitch-api/users/' + name
for /channels/:channel => 'https://wind-bow.gomix.me/twitch-api/channels/' + name
for /streams/:stream => 'https://wind-bow.gomix.me/twitch-api/streams/' + name
where name is one of ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"]
Why don’t you play with the api for some time to understand it before you start coding?