This probably is very stupid question and surely feels like it should have been asked already multiple times, somehow though haven’t seen it yet… And after hours and hours of googling and searching this forum I’m still left out dry like a fish on the desert, I’m just gonna ask:
How does one get channel ID of user A, having access to:
- User’s B channel name;
- User’s B oauth;
- User’s A channel name;
Where user B has all possible access to User’s A channel (is a mod and everything).
To draw the picture a little bit:
I’m making Chatbot written in gdscript, that needs to also listen to channel point redemptions. That’s basically it.
For normal chat interaction, those three things mentioned above are enough.
Only possibility I found for getting Channel Points Redemtions and other related events is PubSub.
As both normal chat interaction and PubSub are based on Websockets, it’s pretty easy; Issue is, to connect with PubSub I need this mystical information named “client ID”… And here’s where issue rises.
From what I found, to get client ID I have to use http request to
Well, alright - had to do some workarounds but managed to get get websockets and http request together somehow. But the request requires me to input oauth (fair enough, we have User’s B oauth token so can do) and client id… which makes no sense, to have to have client ID to get client ID.
It’s important for my chatbot to be flexible and user friendly, so I can’t be dependent on using one particular bot or channel account and all three pieces of information mentioned at the start of this post are inputted by user, so can’t be hard-coded.
So, summing up - is there a way to get client ID of user, knowing his username?
Sorry for the long post and thanks for all help!