PHP code example of blizzard-galaxy / api-supervisor
1. Go to this page and download the library: Download blizzard-galaxy/api-supervisor 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/ */
blizzard-galaxy / api-supervisor example snippets
php
$starcraftClient = new StarcraftClient('YOUR_API_KEY', Region::EUROPE, Locale::EN_GB);
$playerProfile = $starcraftClient->getPlayerProfile(2048419, 'LionHeart');
$ladderSummary = $starcraftClient->getLadderSummaryById(7500);
$ladderSummary = $starcraftClient->getLadderSummaryGrandmaster();
$ladderSummary = $starcraftClient->getLadderSummaryGrandmasterLastSeason();