I would like to create a program in HTML/CSS/JS that I can integrate as a Browser Source into OBS Studio.
In this program, I would like to LISTEN & GET multiple events that trigger into my channel when I’m live (follows, subs, messages in the chat, bits, etc).
The idea is to get a JSON response with all the information about the event, that I can manipulate in JavaScript and display it in HTML/CSS.
For example, if someone follows the channel, I would like to get his nickname.
And if someone gives bits, I would like to get his nickname and the amount of bits.
All of those examples could be given by the JSON response of the API.
Is it possible to guide me into the Twitch API documentation with what I’m looking for ? If what I’m looking for is possible of course.
Just an other question, how can I listen to events ? Like, when I’m connected with the implicit auth, how can I listen to events ? Is there any function in JavaScript ?
I will check it out, and see what I can do with it.
I don’t know if it’s to much to ask, and if it is I will understand, but for example can you show me how to listen to someone that just follow the channel ?
Again, if I ask to much, it’s ok I will search myself
Oh okay, so for example I will have to execute like every 5 seconds the call of the URL and watch for every change into the JSON response, is it correct ?
Thank you so much for this fast reactivity ! I apreciate that
Mmmmh okay, once per minute is, I think, to long for follow notification. I would like it to be just like the regular notification on Streamlabs you know, when someone follow, it appear approximately 5 or 10 seconds after the user has clicked on the button. And so is there anyway to do the same or it’s impossible ?
Just to tell you, I have knowledge in JavaScript just to create website, and maybe I have some lack of knowledge in what you tell me. Maybe I have to learn more about it