Begin migration to the new Twitch API (Helix)#44
Merged
Conversation
Add Twitch API client
…d singletons to it
…mation, as well as associated resources
…to rely on Helix 'users' API.
[Maintenance] Update composer dependencies
…ns using refresh token [Database] Fix migration on users table (refresh_token column)
[Twitch API - Helix] Change /twitch/followcount to use Helix
[Twitch API - Helix] Migrate /twitch/uptime to Helix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request covers some work towards #22, primarily:
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
_totalparameter (subcount), nocreated_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
/twitchendpoints that now use Helix:/avatar/followcount/followed/id/total_views