* when making requests for the Europe services, battlegroups and realms. * * For a complete listing of available regions go to: * https://dev.battle.net/docs/read/community_apis * Default: US */ BattleNetAPI::setRegion('US'); /** * The locale works closely alongside with the region. The region determines * the locales that are available to you. * * For a list of the available locales in a particular region go to: * https://dev.battle.net/docs/read/community_apis * Default: en_US */ BattleNetAPI::setLocale('en_US'); /** * Sample request callback function. * * Your callback function is called after each request. * * Whether the request was successful or failed, it will still call this * function. * @param string $url The requested URL * @param string $response The response of the cURL request * @param info $info Information regarding the cURL request * @param resource $handle The cURL handle */ function myCallback($url, $response, $info, $handle) { echo '<h1>' . $url . '</h1>';