Stateford / twitch-api

Easy node interaction with the twitch API, using promises
https://www.npmjs.com/package/twitch.tv-api
7 stars 7 forks source link

API v5 deprecation #9

Open Stateford opened 6 years ago

Stateford commented 6 years ago

Twitch API v5 is deprecated and will be removed at the end of 2018, so we strongly recommend you migrate to the new Twitch API now. source

looks like they are planning to remove v5 support at the end of 2018 in favor of what they are calling the new twitch api

shouldn't be too hard to port over, but if we add v6 support early on, we should keep v5 support, without breaking the old stuff we have

Stateford commented 6 years ago

https://dev.twitch.tv/docs/api

andyklimczak commented 6 years ago

Am I just missing it, but where are the exact endpoints? Or is it the same endpoints as v5, but which the extra rate limiting stuff?

Stateford commented 6 years ago

Yea, some new api key stuff it seems, and a new URL

Stateford commented 6 years ago

This page will make it more clear

https://dev.twitch.tv/docs/api/reference

GET https://api.twitch.tv/helix/users

I'll get to work on it when I have some free time. It doesn't deprecate until 2018.

Stateford commented 5 years ago

Starting in 2019, the default version will be v5. The default version applies to the API using kraken URLs.

Looks like the twitch API will not remove support for v5 now. It might be a good idea to add support for v6, but this isn't anything urgent, unless someone wants to tackle this.

I would suggest designing it in a way where the user can select which version (defaults to v6 unless explicitly asking for v5).