Hi everyone, i would like to add a login with Twitch button to my website because i need to store in my DB the twitch id and username of the person who’s logging in.
I tried following the guides for the API but probably i’m not smart enough to make it work.
Once the user clicks the link they goto Twitch. After they approve it redirect back the RETURN_URL you specified and you can process details such as auth key and run futher API calls using it as reference.
Thanks for the answer but i still can’t make it work, that’s what i get as response: {“error”:“Bad Request”,“status”:400,“message”:“No client id specified”}
That all depends on what code you are using to create your page. Javascript, PHP, etc. Each code will have different methods to retrieve the parameters. It looks like you are using PHP from your sample URL. The best option would be to google it, as retrieving parameters are global across PHP, it isn’t specific to Twitch’s API.