Advertisement
irokemr

api twitch 2

Nov 24th, 2019
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.92 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.  
  4. $context = stream_context_create($opts);
  5.  
  6.  
  7. $usuario = $_POST['usuario'];
  8. $file = file_get_contents("https://todocodigos.000webhostapp.com/twitch/api/infotwitch.php?usuario=$usuario", false, $context);
  9.  
  10.  
  11.  
  12.  
  13. $image_data = json_decode($file, true);
  14. $twitch = json_decode($file, true);
  15.  
  16.  
  17. $news = json_decode($news, true);
  18.  
  19.  
  20.  
  21.  
  22.  
  23. $context2 = stream_context_create($opts2);
  24.  
  25.  
  26. $usuario2 = $_POST['usuario'];
  27.  
  28. $file2 = file_get_contents("https://todocodigos.000webhostapp.com/twitch/emoticonos/emoticonos1.php?usuario=$usuario2", false, $context2);
  29.  
  30.  
  31.  
  32. $image_data2  = json_decode($file2, true);
  33. $twitch2 = json_decode($file2, true);
  34.  
  35.  
  36. $news2 = json_decode($news2, true);
  37.  
  38. ?>  
  39.  
  40.  
  41.  
  42. <?php  for ($i = 0; $i < count($image_data['info_twitch']); $i ++) {
  43.    
  44.  
  45.  
  46. ?>
  47.  
  48.    
  49.  
  50.  
  51.  
  52.    
  53.  
  54.  
  55. <?php for ($iii=0; $iii    > count($image_data2['emoticons']); $iii ++) {
  56.    
  57.  
  58. }
  59. ?>
  60.  
  61.  
  62.  
  63.    
  64.        <b><b>  <font color="red"><?php echo $usuario2?></font></b> Antes se llamaba:</b> => <font color="blue"><b><?php echo $twitch2['plans'][$iii]['name']?></b></font> (Para algunos canales, no todos)
  65.      
  66.  
  67.        <br>
  68.      <b>Espectadores:</b> =>  <?php echo $twitch['info_twitch'][$i]['Espectadores'];  ?>
  69.  
  70.  <br>
  71.  <b>Estado del streamer:</b> =>  <?php echo $twitch['info_twitch'][$i]['Estado']  ?>
  72.   <br>
  73.  <b>Categoria</b> => <?php echo $twitch['info_twitch'][$i]['categoria']?>
  74.  
  75.    <br>
  76.  <b>Idioma del streamer</b> => <?php echo $twitch['info_twitch'][$i]['Idioma_del_streamer']?>
  77.  <br>
  78.  <b>Visualizaciones:</b> => <?php echo $twitch['info_twitch'][$i]['Visualizaciones_totales']?>
  79.   <br>
  80.  <b>Seguidores del canal:</b> => <?php echo $twitch['info_twitch'][$i]['Seguidores_del_canal']?>
  81.    <br>
  82.  <b>Logo del canal:</b> => <?php echo $twitch['info_twitch'][$i]['Logo_del_canal']?>
  83.    <br>
  84.     <b>Banner del video:</b> => <?php echo $twitch['info_twitch'][$i]['Banner_del_video']?>
  85.     <br>
  86.      <b>Banner del perfil:</b> =><?php echo $twitch['info_twitch'][$i]['Banner_del_perfil']?>
  87.    <br>
  88.  <b>Ultimo titulo:</b> => <?php echo $twitch['info_twitch'][$i]['Titulo_del_último_vídeo']?>
  89.  <br>
  90.  
  91. <br>
  92.  <br>
  93.  
  94.  <br>
  95.  
  96.  ******************************
  97.  <br>
  98.  <form action="" method="POST">
  99.  <input type="text" size="50" name="usuario" id="usuario" placeholder="Escribe el nombre del streamer">
  100.  
  101.  <input type="submit" value="Ver info">
  102.   </form>
  103.    *****************************
  104.  <br>
  105.  
  106.  
  107.  
  108. <h3>API TWITCH:
  109. <br>
  110. <a href="https://pastebin.com/GZFjb02R" target="_blank">api twitch</a>✔️
  111. <br>
  112. <a href="https://todocodigos.000webhostapp.com/twitch/emoticonos/emoticonos.php" target="_blank">Api emoticonos twitch</a>
  113. <br>
  114. <a href="https://todocodigos.000webhostapp.com/twitch/seguidores/seguidores1.php">Api twitch seguidores</a>
  115.     <br>
  116. <a href="https://todocodigos.000webhostapp.com/twitch/clips/clip1.php" target="_blank">Api twitch clips</a>
  117. </h3>
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement