Recently started working on the Twitch Chatbot and have the bot doing very basic commands but as soon as I attempt to request stream information I get a bit lost. When I do an online Curl Request I can get all the json data no problem. However when I try to fetch in the Glitch bot.js I just get
error: ‘Bad Request’,
status: 400,
message: ‘No client id specified’
Any ideas?
I also tried to migrate to the new helix API but I cant seem to figure out the new https.
Thankyou Barry this helped alot and got it all working for me but I’m starting to realize I should probably make the switch to the new Helix api. Any idea how to translate the fetch over to helix? I assume it will return a similar json.
Your call to resp.json() is one method of calling a json decode. It’s a javascript/API basic since the data is returned as a string and has to be parsed for use, it’s a bit of a fundamental
Here is the current code if you have a chance to take a look. rudeoffBOT
The issue I’m currently having is transitioning from kraken to helix. The helix fetch is just returning an empty object.