PHP code example of eihmels / twitch-helix-streams
1. Go to this page and download the library: Download eihmels/twitch-helix-streams library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eihmels / twitch-helix-streams example snippets
$client = new TwitchHelix('https://api.twitch.tv', '/helix/streams', '<yourClientId>', new Client());
$application->execute(
'<yourToken>',
new QueryParameterCollection(
[
new UserIdentifier('123456')
],
new First(2),
)
));
>= PHP 8.1