Skip to content

A package to retrieve information from the Battle.net API

Notifications You must be signed in to change notification settings

Jleagle/battlenet-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

battlenet-api-client

Build Status (Scrutinizer) Code Quality (scrutinizer) Latest Stable Version Latest Unstable Version

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);

About

A package to retrieve information from the Battle.net API

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages