* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ // Include the PHP Battle.net API Library. require_once __DIR__ . '/BattleNetAPI.php'; /** * An API key is required to interact with the Battle.net API services. If * you do not have an API key, you must first go to http://dev.battle.net * and create an account. Once you have created an account and registered * 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: