channel is just a variable i have set, it’s not generated anywhere. var channel = “channel_name”.
and let’s say this 404 you are talking about is what’s happening, it doesn’t make sense. $scope.follow gives a true or false. To get that statement i call upon a function which checks if the user is actually following the channel. This actually works fine, returns the right value every time. So basically this message you explained can’t actually occur because what the code above is doing is trying to unfollow [channel] that [user] is following in order to unfollow [channel] and vice versa
and the second reason it doesn’t make sense to me is you’re talking about a 404 while i’m getting a 401 ![]()
[Twitch] Response Data: Object {error: “Unauthorized”, status: 401, message: “Token invalid or missing required scope”}