Hi Barry
I am checking multiple people at once so something like
is person A following person Z
is person B following person Z
etc…
The code only gives me response when The first person is following the second, but not when he is not
The code here
$.ajax({
dataType: "jsonp",
jsonp:"callback",
url: "https://tmi.twitch.tv/group/user/hidemon/chatters",
success: function viewera(data){
//seeing the result in the console
console.log(data);
//gets the viewers
$.each(data.data.chatters.viewers, function(i, field) {
var viewers = field;
// Check if they are followers!
var follow = "https://api.twitch.tv/kraken/users/" + viewers + "/follows/channels/" + userName + "?client_id=xxx";
$.getJSON(follow, function(resulta){
$.each(resulta, function(i2, field2) {
$("#go").append("<p>" + field2 + "</p>");
});
});
I did not find anything related to my problem on stackoverflow so I was hoping I can find some help here !
Thank you in advance!