PHP code example of jleagle / battlenet-api-client
1. Go to this page and download the library: Download jleagle/battlenet-api-client 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/ */
jleagle / battlenet-api-client example snippets
$warcraft = new Warcraft(
$key,
ServerLocations::EU,
ResponseLocales::EN_GB
);
// Retrieve auction data
$auctions = $warcraft->getAuctions('outland');
// Retrieve realm list
$realms = $warcraft->getRealms();
// Retrieve achievement details
$achievement = $warcraft->getAchievement(2144);