Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Ferlow/JBlizzard

Repository files navigation

JBlizzard

About

An experimental API wrapper for the blizzard API, written in java. Use at your own risk. For now, I will focus on implementing the API for World of Warcraft (retail).

Current unofficial version pre-0.1

Usage

Create ClientID & Client secret

Head to the official blizzard API access page and create your client. Make sure, that you do not leak these credentials to anyone!

request examples

public class Run {
    public static void main(String[] args) {
        String clientId = "<YOUR CLIENT_ID HERE";
        String clientSecret = "YOUR CLIENT_SECRET HERE";
        JBlizzardClient cli = new JBlizzardClient(clientId, clientSecret, Locale.EN_GB);
        System.out.println(cli.getEuRegion().getRealms().get(0).getId());
    }
}

Output: 500