PHP code example of logansua / blizzard-api-client
1. Go to this page and download the library: Download logansua/blizzard-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/ */
logansua / blizzard-api-client example snippets
// Include composer autoload file
with Blizzard API key and secret
$client = new \BlizzardApi\BlizzardClient('apiKey', 'apiSecret');
// Create a new API service with configured Blizzard client
$diablo = new \BlizzardApi\Service\Diablo($client);
// Use API method for getting specific data
$response = $diablo->getItemDataById('Unique_Shoulder_103_x1');
// Show response body
echo $response->getBody();