Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.34 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <meta name="description" content="dinubish Subscribers List">
  8.     <meta name="author" content="dinubish">
  9.     <link rel="icon" href="https://dinubi.sh/favicon.ico">
  10.  
  11.     <title>diinubish - Subscribers</title>
  12.  
  13.     <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">
  14.     <link href="index.css" rel="stylesheet">
  15.   </head>
  16.  
  17.   <body>
  18.     <div class="container">
  19.       <div class="jumbotron">
  20.       <center>
  21.       <div class="header">
  22.         <h2>Subscribers List</h2>
  23.           <p>Names of each and every Subscriber who have helped my channel grow. Thank you for your support, i really appreciate it :)</p>
  24.       </div>
  25.       <?php
  26.           $json=file_get_contents("https://api.twitch.tv/kraken/channels/dinubish/subscriptions?client_id=rggmg0zc5nspy8phlrrptviv9wlm92r&oauth_token=dyjna24zu315726ml95qeh75275g9w");
  27.           $data = json_decode($json);
  28.           if (count($data->subscriptions)) {
  29.           echo "<table>";
  30.               foreach ($data->subscriptions as $idx => $subscriptions) {
  31.                   $date = new DateTime($subscriptions->created_at);
  32.                   echo "<tr>";
  33.                   echo "<th>NickName</th>";
  34.                   echo "<th>Subscriber Since</th>";
  35.                   echo "</tr>";
  36.                   echo "<td>{$subscriptions->user->display_name}</td>";
  37.                   echo "<td>{$date->format("Y/m/d H:i:s")}</td>";
  38.                   echo "</tr>";
  39.               }
  40.               echo "</table>";
  41.           }
  42.       ?>
  43.       </center><br>
  44.         <p><a class="btn btn-small btn-info" href="https://www.twitch.tv/dinubish/subscribe" role="button">Subscribe</a></p>
  45.       </div>
  46.     </div>
  47.  
  48.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script>
  49.     <script src="https://v4-alpha.getbootstrap.com/assets/js/ie10-viewport-bug-workaround.js"></script>
  50.   </body>
  51. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement