Skip to content

Begin migration to the new Twitch API (Helix)#44

Merged
Decicus merged 16 commits into
masterfrom
at/helix-migration
Aug 23, 2019
Merged

Begin migration to the new Twitch API (Helix)#44
Decicus merged 16 commits into
masterfrom
at/helix-migration

Conversation

@Decicus
Copy link
Copy Markdown
Owner

@Decicus Decicus commented Jul 1, 2019

This pull request covers some work towards #22, primarily:

  • Authentication: New scopes, refresh token handling
  • Kraken -> Helix requests: Some of the easy stuff like public user info.
  • Refactoring of how Twitch API requests are... requested
    • Should be a bit more structured now.

The Helix API has gotten a lot better lately, but still has ways to go. The main thing I noticed was that subscription APIs are severely lacking: No _total parameter (subcount), no created_at (subage).
I can understand the lack of created_at, since that was never really that useful. However I do hope they add a field that shows the first time a user subbed (in relation to cumulative sub streaks).

A live version of this code can be found at: https://dev.decapi.me/
I want to do some heavy testing to make sure things work as intended. There might also be other changes I want to include in this PR before I merge.

List of /twitch endpoints that now use Helix:

  • /avatar
  • /followcount
  • /followed
  • /id
  • /total_views

@Decicus Decicus self-assigned this Jul 1, 2019
@Decicus Decicus merged commit 4aa4d35 into master Aug 23, 2019
@Decicus Decicus deleted the at/helix-migration branch August 23, 2019 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant