I am trying to make it so that the snippet below automatically creates extra pages to show me all the followers I have on my Twitch Channel. At the moment I have it at 25, but it does cap at 100. How can I make it so that it automatically populates the table?
<?php
$json = json_decode(file_get_contents("https://api.twitch.tv/kraken/channels/greatbritishbg/follows?limit=25"));
$i = 0;
// Use http://json.parser.online.fr/ to get the string parse of the Json_Decode
echo "<table><tr>";
echo "<th>Username:</th>";
echo "<th>Follow Date:</th>";
echo "<th>Type:</th>";
echo "<th> </th>";
echo "</tr>";
foreach($json->follows as $follow) {
$i++;
echo "<tr>";
echo "<td><a href='" . $follow->user->_links->self . "'>" . $follow->user->name . " (".$i. ")</td>";
echo "<td>" . $follow->user->created_at . "</td>";
echo "<td>" . $follow->user->type . "</td>";
echo "</tr>";
}
echo "</table>";
//$follow = grabbing the json object for follows > user > name.
?>