logansua / blizzard-api-client
API client for blizzard API written in PHP
Installs: 2 469
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 9
Forks: 13
Open Issues: 3
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: ^6.2
- symfony/options-resolver: ^3.0
This package is not auto-updated.
Last update: 2024-12-21 19:39:19 UTC
README
API client for Blizzard API written in PHP. Blizzard API Documentation
Installation
$ composer require logansua/blizzard-api-client
This command requires you to have Composer installed globally, as explained in the Composer documentation.
Basic usage
// Include composer autoload file require_once __DIR__.'/../vendor/autoload.php'; // Create a new Blizzard client 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();
List of available API services
- World of Warcraft (example)
- Diablo 3 (example)
- Starcraft (example)
- Community OAuth (example)
- Game Data (example)
Contributing
See CONTRIBUTING file.
License
This software is published under the MIT License