Hello guys, I’m making my own streaming deck. There will be features such as switching the chat to follower mode only via buttons, but there is something I’m stuck on: the user will come and enter their information, the user password and account will remain registered, how can I do it?
I am writing in Python, I have python knowledge, but my API knowledge is a little weak. The user will click on connecting his account, the browser will open, then he will enter the information. After entering, his account will remain registered and he will receive the necessary tokens. How can I do this?
Which tokens are needed to perform the necessary control operations.
I would be very grateful if you could help me, thank you very much in advance.
Hello, thanks for your reply. I didn’t understand it very well, looking at the stream decks on the market from the documentation, I didn’t understand that only the user pass is enough, there is no need to authorize anything.
as an example, I found the code to make the chat only followers special mode from the api, but I get the tokens and after a certain period of time it becomes ineffective.
Ignore them as they don’t help you as the magic source that makes authentication go is different to what you are going to achieve and thus it’s bogging you down needlessly.
But basically
Elgato Stream deck → create an elgato account
Using the Elgato account pair it with a Twitch account via code flow oAuth
Now the stream deck can ask the Elgato server via the elgato account to return the current Twitch oAuth token and refresh if needed on the Elgato server
this predates DCF existing, so an external accounts system makes sense, even more so with Elgato market place.
For you, you want DCF so most of the Documentation around existing Decks will not help you. Since they cover how to use the deck/build plugins and not how to authenticate to other services…
I want to get the tokens in this code, but the user will not enter them manually, he needs to link his account as in the picture, I wonder how to do this, for some reason I can’t find it, when I say link, the browser will open.
I did it, I get the token but when I try to put the chat in followers mode {‘error’: ‘Unauthorized’, ‘status’: 401, ‘message’: ‘Missing scope: moderator:manage:chat_settings’} I get this error scope is correct but
hey hello thank you very much, thanks to your help I learned what I wanted.
I don’t know if you can help me with this, but I would be very grateful if you could help me. all I need to do now is to control obs, I want to do it on python, I want to do it on python, I want to open and close the recording, scene transitions, etc. There is an api documentation of this, but I didn’t understand it much, and it was written in c. I wonder if I can do it with python, I couldn’t find an example.