Hello sry for my bad english.
I have a problem the Twitch scrip what I got 2 years ago is no longer and I do not really know how I integrate the new api might give me a tip. Thanks in advance
My File
<?php
include("_mysql.php");
include("hitbox.php");
mysql_connect($host, $user, $pwd) or die ('FEHLER: Keine Verbindung zu MySQL');
mysql_select_db($db) or die ('FEHLER: Konnte nicht zur Datenbank "'.$db.'" verbinden');
?>
<?php
$streamlist = '';
$clientID = "xxx";
function print_stream($status,$name,$logo,$viewer,$portal=1,$cat='') {
if($viewer==0 and $status==0) $viewer = 'Offline'; else $viewer = $viewer.' Viewer';
if($cat != '') $cat = $cat.' '; else $cat = '';
return('
Thank you for your quick response. Only my problem is that I had to enter the Webinterface only the names and which were directly online. With the Id, I knew only how I put it into the script I do not know unfortunately since I control it by mysql here is a picture of the design https://img4.picload.org/image/ropwlidl/twi.png
yeah, with v5 of the API, all channel names have to be converted over to channel ID (users now uses ID as well)… you can convert then using the /users?login= endpoint…
so for instance, to get the channelId for aero2k13 you would make a call to /users?login=aero2k13 and it will return some json with the channel ID included…
as for how to convert the version of the api you are currently using to v5, you’ll unfortunately have to just read the docs and make adjustments as necessary… you may still have a little bit of time if you were using v3… the time table is here.