Hi there! I’m sure that this is probably explained in the documentation on in some forum question, but I’ve not found it anywhere and it’s my first time fighting with twitch integration.
I’m trying to test my poll integrations in my Unity game, but since my twitch account is not an affiliate one I assume I need to test it in some local way. And eventho I’ve installed Twitch-cli I’m not being able to connect to it from my game. The clientId twitch-cli server gives me is not recognized as a valid id from the game and if I use my app client id and the localhost auth url do not work.
I’m sure is something dumb I’m missing, so… thanks for the help!
I tried, but I do not have a client-secret as my flow do not need it (I think) and twitch configure don’t allow to just set one of the two if I’m not mistaken.
You might be able to do you testing with a confidential client to then test with and do final testing with a friendly affiliate (or better) before you ship?
Ok! I’ve been able to authenticate and connect to the Twitch-cli with a confidential client. However, trying to launch a poll from the game still gives me a 403 error. This just leaves me the option of finding some friendly affiliate that let me test it, right?
I’m not sure how to do that, because on the device flow I do not make any CURL request (if I’m not mistaken) where I write the needed URI. Is that right? On my code I just do Twitch.API.NewPoll and I do not see where the API has the URI to change it.
Does make sense what I say? Thank you for your help!
Unfortunately when using the Twitch Game Engine plugin you wont be able to point it at a mock server from the CLI.
The documentation is generally good for the most part but for actual testing you’d need to work with a channel that is monetized (Last year Twitch started rolling out Monetization for all, which allows onboarded users in the regions where it’s rolled out to start accessing features like polls and such without being an affiliate or Partner, so if you’re in one of those countries it might be worth looking in to).
That’s what I was affraid off haha And the only way to make a unity game integration is using that TwitchGame Engine, right? Thank you so much for the answer!
The Game Engine Plugin is essentially just a wrapper for making HTTP requests and establishing websocket connections for EventSub, so it’s entirely possible to integrate with the Twitch API without it and just make the requests manually and point them to a mock server or write your own tests (which is what games had been doing for years prior to the release of the game engine plugin).