Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Channels listing on frontpage #8

Open
lannonbr opened this issue Feb 9, 2020 · 1 comment
Open

Live Channels listing on frontpage #8

lannonbr opened this issue Feb 9, 2020 · 1 comment
Assignees

Comments

@lannonbr
Copy link
Contributor

lannonbr commented Feb 9, 2020

Have the ability to see live channels on the frontpage. At the bottom of the listing have a link over to the team members listing

@ThindalTV
Copy link
Collaborator

We need to look into permissions regarding sharing application client id and a daily generated oauth token(ie we'd generate it on daily CD build).
If it's something we can do, then this is how to do it:

Get oauth token:
POST https://id.twitch.tv/oauth2/token?client_id=&client_secret=&grant_type=client_credentials
This would be called from CD script and the access_token return field stored.
https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#client-credentials-grant-flow

GET https://api.twitch.tv/helix/streams?user_login=Member1&user_login=Member2&user_login=Member3
Call this on the client side. Requires the HTTP headers Client-id, which is constant for us, and Authorization Bearer <access_token> from above. Will return a list of up to 100 channels.
https://dev.twitch.tv/docs/api/reference#get-streams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants