Skip to content
Joe Foster edited this page Sep 30, 2022 · 3 revisions

On the page where you want to use the api you have to start by including the required pages

require_once('Client.php');

after that you need to set the required parameters of the script to function

$client_id		= '';
$client_secret		= '';
$region			= '';
$locale			= '';
$redirect_uri		= '';
  • $client_id = your Key code

  • $client_secret = your secret code

  • $region = is the region you want to make the calls to (US EU TW SEA KR)

  • $locale = this is the language setting for translation of the calls

  • $redirect_uri = the page blizzard auth will redirect your users too

Once this is finished you INIT the script with

$client = new new Client($client_id, $client_secret, $region, $locale, $redirect_uri);

$client may be any variable you want

Clone this wiki locally