{"repo":"swiftyspiffy/twitch-token-generator","free":true,"listed":false,"github":"https://github.com/swiftyspiffy/twitch-token-generator","clone":"git clone https://github.com/swiftyspiffy/twitch-token-generator.git","description":"Repository for the source that sits on https://twitchtokengenerator.com","language":"PHP","stars":101,"topics":["twitch","oauth","token","generator","twitchtokengenerator","api","twitchlib"],"license":null,"category":"auth-billing-email","readme_excerpt":"TwitchTokenGenerator.com https://twitchtokengenerator.com Overview A simple tool to generate access tokens for Twitch with custom scopes. Good tool for testing various Twitch third party tools (like swiftyspiffy/TwitchLib). - Full Site: twitchtokengenerator.com API An API exists on TwitchTokenGenerator allowing the creation of tokens and implementation in applications. The API is currently implemented in TwitchLib. A flow of how the API works is listed below: 1. Ping the create endpoint to get a link to give to user: - Create Endpoint: https://twitchtokengenerator.com/api/create - Required parameters: - base64 encoded application title - scope list with + delimiter - Example create: https://twitchtokengenerator.com/api/create/QXV0aEZsb3dFeGFtcGxlIFRlc3QgQXBwbGljYXRpb24=/chat:read+chat:edit The scope list must contain currently supported Twitch OAuth scopes. The former chat login example is obsolete and is no longer accepted by Twitch. 2. Response will be a json object including success bool, an id, and a message string containing the auth url. Present the URL to the program user. 3. Your application should ping the status endpoint for updates on authorization. The status will return error 3 \"Not authorized yet\" until the user authorizes their account. After authorization, the status endpoint will return their credentials on the first ping post-authorization. Additional pings will return error 4 \"API instance has already expired\". This is to protect the user. - Status endpoint","default_branch":null,"files":null,"tree":[],"storefront":"/r/swiftyspiffy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/swiftyspiffy/twitch-token-generator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}