Why can i follow / unfollow a channel on behalf of the user, but there is no official way to follow a category?
Why this button is different from this
?
One of them is a channel the other is a game follow button.
Ok, i get to my point.
.load("PUT", "https://api.twitch.tv/api/users/" + USER_NAME + "/follows/games/follow?name=" + gameName)
.load("DELETE", "https://api.twitch.tv/api/users/" + USER_NAME + "/follows/games/follow?name=" + gameName)
These non public endpoints were killed around last year’s November. So from my perspective i lost the ability to follow or unfollow games on behalf of the user. Which to me makes no sense. Why can i follow a channel, but god forbid to follow a category?
So… it turns out, i can follow a category even today…
Following the logic of the “Follow channel” api
.load("PUT", "https://api.twitch.tv/kraken/users/" + USER_ID + "/follows/channels/" + streamerID)
you can follow a category with this:
.load("PUT", "https://api.twitch.tv/kraken/users/" + USER_ID + "/follows/games/" + game_id)
and using the same logic of the old api, if i want to unfollow, all i have to do is use the “DELETE” header
.load("DELETE", "https://api.twitch.tv/kraken/users/" + USER_ID + "/follows/games/" + game_id)
but as it turns out, i shouldn’t expect this much consistency.
{
"error": "Not Found",
"status": 404,
"message": ""
}
So before anyone feels the urge to tell me why i shouldn’t use non public API-s, can someone explain to me, why can i follow channels but not games? And can you fix the Delete endpoint? I’m fully aware that twitch is not using kraken for this purpose, but since we are not allowed to use gql, this would be our only option.