I am attempting to follow a user on behalf of another user using the Twitch API. Listed in the documentation is the following PUT call: https://api.twitch.tv/kraken/users/userId/follows/channels/channelId
If I make this call I get a 410 (Gone) error back. Obviously this means the endpoint has been removed. However, the endpoint is still listed in the v5 documentation. Is there a new endpoint that I just don’t see in the documentation for the new API? I appreciate any assistance.
You didn’t include the v5 header, so it tried to use the v3 API
Requests
For client IDs created on or after May 31, 2019, the only available version of the Kraken API is v5. For client IDs created prior to May 31, 2019, use the application/vnd.twitchtv.v5+json header on your requests to access v5 of the Kraken API.