Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="description" content="dinubish Subscribers List">
- <meta name="author" content="dinubish">
- <link rel="icon" href="https://dinubi.sh/favicon.ico">
- <title>diinubish - Subscribers</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
- <link href="index.css" rel="stylesheet">
- </head>
- <body>
- <div class="container">
- <div class="jumbotron">
- <center>
- <div class="header">
- <h2>Subscribers List</h2>
- <p>Names of each and every Subscriber who have helped my channel grow. Thank you for your support, i really appreciate it :)</p>
- </div>
- <?php
- $json=file_get_contents("https://api.twitch.tv/kraken/channels/dinubish/subscriptions?client_id=rggmg0zc5nspy8phlrrptviv9wlm92r&oauth_token=dyjna24zu315726ml95qeh75275g9w");
- $data = json_decode($json);
- if (count($data->subscriptions)) {
- echo "<table>";
- foreach ($data->subscriptions as $idx => $subscriptions) {
- $date = new DateTime($subscriptions->created_at);
- echo "<tr>";
- echo "<th>NickName</th>";
- echo "<th>Subscriber Since</th>";
- echo "</tr>";
- echo "<td>{$subscriptions->user->display_name}</td>";
- echo "<td>{$date->format("Y/m/d H:i:s")}</td>";
- echo "</tr>";
- }
- echo "</table>";
- }
- ?>
- </center><br>
- <p><a class="btn btn-small btn-info" href="https://www.twitch.tv/dinubish/subscribe" role="button">Subscribe</a></p>
- </div>
- </div>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script>
- <script src="https://v4-alpha.getbootstrap.com/assets/js/ie10-viewport-bug-workaround.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement