Can we still follow users via the API?

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:

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

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.
curl -H 'Accept: application/vnd.twitchtv.v5+json' \
-H 'Client-ID: uo6dggojyb8d6soh92zknwmi5ej1q2' \
-H 'Authorization: OAuth cfabdegwdoklmawdzdo98xt2fo512y' \
-X PUT ''

You need the Accept header and you have not included it

Or migrate to helix

Get Follows:


Awesome. I missed the helix version of this. Great answer. Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.