hi, i am using some javascript code to return the list of people i am following from https://api.twitch.tv/helix/users/follows?from_id=myid , so far all ok , i receive the response , i parse the json , i follow 23 channels so that answer is correct , now as a first step i am trying to just list all users id ( will convert to names later once i have this working )
the relevant part of what i have so far is
respuesta = JSON.parse(twitch_following_api.responseText);
for (var i = 0; i < respuesta.data.length; i++) {
var sigo = respuesta.data[i];
statusHTML += '<li>' + 'Following ' + i + sigo.to_id + ' followed ' + sigo.followed_at + '</li>';
}
so i found that lists only the default first 20 users in the array as shown in the screenshot
to get all the others as in Reference | Twitch Developers i need to use pagination , thing i never had to use before so i can’t see how to use the “after” and “first” parameters , and the “pagination” response ( if i believe those are the only ones i need to add )
how would use that to show all the users i follow in a list ?
thanks in advance