This repo contains a template for both a serverless EBS written in golang and the front-end for a Twitch panel extension in vueJS.
This project serves as a template to create a serverless EBS and creating the front-end of a Twitch panel extension in vueJS.
This extension will display a list of a broadcaster's followers in a formatted table.
Make sure you have the following installed:
- Git
- Go 1.14+
- vue-cli
- aws-cli
- aws-sam-cli
- localstack - [OPTIONAL]
- twitch-developer-rig - OPTIONAL
This project is formed of two components, please see their sub-directories
goto ./Client for the vueJS project
goto ./EBS for the EBS.
From your Twitch Extension Dashboard you can get the following:
- Client ID
- Base64 Secret
- Extension Version
- Extension (Broadcaster/Developer) Config Version - OPTIONAL
To get the owner ID, you will need to first create a temporary access token via https://twitchtokengenerator.com/
Next fetch your ownerID from a simple CURL command against the Twitch /users
endpoint.
You'll also need the client ID from https://twitchtokengenerator.com/ as part of the query.
curl -H "Client-ID: <client id>" -H "Authorization: Bearer <access token>" -X GET "https://api.twitch.tv/helix/users?login=<twitch-login-name>"
your ownerID is the value of 'ID'
{
"data": [{
"id": "35851594",
"login": "crazyjack12",
"display_name": "crazyjack12",
"type": "",
"broadcaster_type": "",
"description": "Do What Thou Wilt",
"profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/ea0bf955-255a-4eca-ad80-460b88162910-profile_image-300x300.png",
"offline_image_url": "",
"view_count": 1702
}]
}
Get started and create your extension today!.
For any questions or suggestions please join the 'go-twitch-ext' channel on Discord!
- https://dev.twitch.tv/docs/extensions
- https://discord.gg/566fFzA - Twitch dev community discord
- https://discord.gg/qe7b8da - BootstrapVue discord
- https://discord.gg/Q4PX2Yj - Twitch API discord
All donations are appreciated!