Line 129 calls an API that doesn’t exit
$request = new HTTPRequest(self::API_BASE . ‘/streams/?channel=’ . implode(‘,’, $channels) . ‘&client_id=’ . STREAMING_PARTNER_TWITCH_CLIENT_ID);
And is just flat calling Helix wrong, this should work:
$request = new HTTPRequest(self::API_BASE . ‘/streams/?login=’ . implode(‘&login=’, $channels));
Line 90 calls an API end point that doesn’t exist on Helix.
$request = new HTTPRequest(self::API_BASE . ‘/channels/’ . $channelData[‘data’][‘name’] . ‘?client_id=’ . STREAMING_PARTNER_TWITCH_CLIENT_ID);
Should be something like
$request = new HTTPRequest(self::API_BASE . ‘/users/?id’ . $channelData[‘data’][‘id’]);
And your ClientID needs to be moved to a Header for All Requests
It looks like this script was migrated from API v3, skipping v5, straight to helix and wasn’t correctly modified for helix