Showing Posts For V Aero.5618:
Hey guys,
two things, which maybe are a bit connected. Why can’t I get character’s stats ie HP, power, defense, vitality etc? And for some weapons/armour which I can chose the stats when I get them in game, I can’t get theirs. Probably because I lookup the item via items endpoint and stats are not there for weapons when I can chose them in game.
Hey guys,
I try to develop a simple java eclipse rcp application to warm up with the GW2API. My first thoughts are to create a tool that helps us to manage all items from all inventories and account bank. So for the first try I use https://api.guildwars2.com/v2/characters?page=0 to lookup all items and then item_details to lookup each item. The problem I encounter is that every requests need some time and currently my tool needs about several minutes to get all required information. So how do you deal with this issue? What is the reason it takes so long time and what could I do?
btw my way to get a JSON respone:
@Override
public String getResponse(String command) throws IOException
{
URL url = new URL(command);
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
return in.readLine();
}
@Override
public JSONObject getResponseAsJson(String command) throws IOException, JSONException
{
String response = getResponse(command);
JSONObject json = new JSONObject(response);
return json;
}
@Override
public JSONArray getResponseAsJsonArray(String command) throws IOException, JSONException
{
String response = getResponse(command);
JSONArray json = new JSONArray(response);
return json;
}
