예제 #1
0
 * your application with Battle.net, you will be assigned a unique API key
 * that you can use to make requests to the various API endpoints to
 * retrieve data. Without an API key, you will not be able to get a valid
 * response from the API.
 */
BattleNetAPI::setKey('YOUR BATTLE NET API KEY HERE');
/**
 * The data through the API is limited to the region that it is in. For
 * example, if you set the region as 'Europe', then you will only receive data
 * 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