jleagle/battlenet-api-client
最新稳定版本:0.1.0
Composer 安装命令:
composer require jleagle/battlenet-api-client
包简介
A package to retrieve information from the Battle.net API
README 文档
README
A package to retrieve information from the Battle.net API (https://dev.battle.net/)
Pros
- Code hinting
- Contains all game APIs (Diablo 3, StarCraft 2 and WoW)
- Contains authed account and community APIs, with helper functions to get OAuth tokens
Usage
Instantiate the package using your games class, passing though your API key, ServerLocation and ResponseLocale:
$warcraft = new Warcraft( $key, ServerLocations::EU, ResponseLocales::EN_GB );
Example API calls:
// Retrieve auction data $auctions = $warcraft->getAuctions('outland'); // Retrieve realm list $realms = $warcraft->getRealms(); // Retrieve achievement details $achievement = $warcraft->getAchievement(2144);
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-29