I have been reading the API documentation and some githubs but I’m a designer and don’t fully understand how I can implement the OAuth in my existing code. I have been trying to get it to work copying and pasting bits from here and there with no success.
I have already registered my app and have a Client ID and Secret.
Help will be much appreciated since I have been breaking my head for a while now.
First tried only adding the Client ID to the URL in the API query, it didn’t work, but then added the request via the code you posted in a php tag in the header, changed the file_get_contents_curl, like you said, and worked like a charm.
It was really simple but some how reading the docs it was not clear to me what I had to do.
I was bored and finished something I wanted to do for a while, I think you might find a use for it. This will basically make a player like on the twitch team page, by grabbing the list of team members, finding the ones that are live and then selecting the one with the most viewers to put into the player, if none are live it will put the most viewed stream on twitch at the moment in the player. This can of course be tweaked for a specific game or another team.
Is there a way to set a random stream on the featured player instead of the one with the most viewers with that code? I run a team for creative streamers (in spanish) and want to help smaller ones to get a chance to be discovered.
I’ll see if I can take the part where it fetches the team members automatically and get it into my code, since I do have some little things in place.