Twitch: Client ID and Client Secret
By the end the radar of live Twitch streams works and ClipOnTap reads viewer clips straight from the Twitch API.
8 minYou need: A Twitch account with a verified email and two-factor authentication turned on.
What works without keys
- Viewer clips and import. The “Viewer clips” and “Import” buttons in ClipOnTap → Streamers read the public clips page: title, views, length.
- Recordings. Downloading a segment of a recording from its link.
- Live watching, including chat. Chat is read anonymously.
What keys add
- Live radar for Twitch with a game filter. Without keys the radar does not run for Twitch.
- Viewer clips for a recording. When analyzing a Twitch recording, ClipOnTap looks up which parts viewers clipped and when. Moments are then more accurate.
- Viewer clips through the official API instead of reading the page. It is more reliable.
Steps
- Open the developer console. Go to dev.twitch.tv/console and sign in with your Twitch account.
- Register an application. Under Applications, choose Register Your Application.
- Fill in the form. The name can be anything, it only has to be unique on Twitch. In OAuth Redirect URLs, enter
http://localhost; ClipOnTap does not use the redirect, the field is just required. Pick the closest category, for example Application Integration. Set the client type to Confidential. - Copy the Client ID. After creating the application, open Manage. The Client ID is shown on the page.
- Generate a Client Secret. Click New Secret and copy it right away. Twitch will not show it again later.
- Paste both into ClipOnTap. ClipOnTap → Connections, fields
Twitch Client IDandTwitch Client Secret, then “Save settings”. After saving, the secret is shown only as its last four characters. - Check in the radar. ClipOnTap → Live radar, platform
twitch, “Load”. InGame / query, type the exact game name as Twitch has it. An empty field means all games.
Troubleshooting
- “Twitch Client ID / Secret missing”. One of the fields is empty. Fill in both and save.
- “Twitch rejected the keys”. A typo, an extra space, or an invalid secret. Generate a new secret in the console and paste it again. The old one stops working when you do.
- “Twitch does not know the game … (check the exact name).” The game name has to match exactly. Copy it from the category on Twitch.
- “Twitch clips (without keys): …”. Reading the public clips page failed. Try again in a moment, or add keys and the import will go through the API.
- The recording shows “no chat”. The chat of a Twitch recording is not downloaded automatically. Save it as JSON with the TwitchDownloader program and upload it with the “Chat” button next to the recording in ClipOnTap → Recordings. Without chat, ClipOnTap works from loudness and viewer clips.