Thank you Barry, I appreciate the explanation. It was not clear to me at first what you did, so this response cleared it up for me. I apologize for not being able to see what the “fix” was at first; that was my fault.
Yeah the tutorial was pretty old, it was made before Twitch made it required to include OAuth to make a request.