Pages: 1 :: [one page] |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Dretzle Omega
Caldari
|
Posted - 2009.08.27 17:45:00 -
[1]
So, I got tired of not having access to various cool EVE tools at work because the computer is locked down and I can't install .NET 2.0. I'm sure others would like tools to work in other environments, as well. So I decided I would reinvent the wheel in Java.
Before you flame, I've been looking and can't find any truly satisfactory java EVE tools or java libraries to help me to access the EVE APIs.
I'd like to make this open source eventually, of course, but I'd like to have something working and a direction to my project, first.
I have character access working. Given User ID and API Key I can find your characters. I have a skill tree that one can traverse to see the attributes of all the skills in Eve. I'd like to get some wallet access working, maybe an item database tree to traverse.
Is there anything that the community is looking for in particular that I'm not thinking of here? I don't want to go for a fitting tool, at the moment.
|
Golden Gnu
Gallente The Golden Gnu Corp
|
Posted - 2009.08.28 10:14:00 -
[2]
Originally by: Dretzle Omega Before you flame, I've been looking and can't find any truly satisfactory java EVE tools or java libraries to help me to access the EVE APIs.
eveapi does an excellent job at getting the API Data IMHO. _________________ Download is the meaning of life, upload is the meaning of intelligent life EVE.NiKR.NET - home of jEveAssets |
Dretzle Omega
Caldari
|
Posted - 2009.08.28 13:58:00 -
[3]
That does look a lot better than any that I could find. Thanks!
I'll still probably be making a Java tool. I might use that API. Well, if you have any ideas for useful cross-platform tool, throw it at me.
|
Golden Gnu
Gallente The Golden Gnu Corp
|
Posted - 2009.08.28 14:34:00 -
[4]
Edited by: Golden Gnu on 28/08/2009 14:35:14
If you didn't find eveapi, you must have missed: Eve Dev
It have a very useful reference of both the api and toolkit.
It also list most of the other eve tools. I would suggest you check that first, before you start anything. So you don't start a project that have already been done - in java that is! _________________ Download is the meaning of life, upload is the meaning of intelligent life EVE.NiKR.NET - home of jEveAssets |
Dretzle Omega
Caldari
|
Posted - 2009.08.28 15:31:00 -
[5]
Nope, I found the Eve Development site. On the Java EveApi page, however, it said that version 1.0 was "still to come soon". And I believe it was the JEve Project that couldn't do what I wanted to do, and it was marked as "stalled".
If you wouldn't mind private messaging me your email address, or something, I wouldn't mind working with your to improve and create apps/the api library. I'll try and see if I can figure out your eveapi, too. That looked useful.
|
Dretzle Omega
Caldari
|
Posted - 2009.08.28 15:40:00 -
[6]
Also, no offense, but the javadocs could really stand for some explanations. If you wouldn't mind explaining, either here or privately, at least the gist of how I should use the code to access the Eve APIs, that would be very helpful.
|
Golden Gnu
Gallente The Golden Gnu Corp
|
Posted - 2009.08.28 16:58:00 -
[7]
Edited by: Golden Gnu on 28/08/2009 17:01:23 Ohh but I'm not the author of eveapi, sorry that I didn't say so...
But, it's pretty simple to use:
int userID; int characterID; String apiKey; boolean corporation; //To get corporation OR player assets Parser parser = new Parser(); Response response = null; response = parser.getAccountBalance( new ApiAuthorization(userID, characterID, apiKey), corporation); List<ApiAccountBalance> accountBalances = new Vector<ApiAccountBalance>(response.getAccountBalances());
This is untested code, but it illustrate how to use the eveapi...
EDIT I did do jEveAssets (link in the sig) The author of eveapi is: Zy'or Tealon (try message him in-game) _________________ Download is the meaning of life, upload is the meaning of intelligent life EVE.NiKR.NET - home of jEveAssets |
Dretzle Omega
Caldari
|
Posted - 2009.08.28 19:00:00 -
[8]
I tried, for example,
com.beimin.eveapi.character.list.Parser parser = com.beimin.eveapi.character.list.Parser.getInstance(); com.beimin.eveapi.character.list.Response response = null; try { response = parser.getEveCharacters(new ApiAuthorization(Integer.parseInt(charId), Integer.parseInt(userId), apiKey)); } catch (IOException ex) { ex.printStackTrace(); } catch (SAXException ex) { ex.printStackTrace(); }
List<ApiCharacter> list = new Vector<ApiCharacter>(response.getEveCharacters());
But response.getEveCharacters() returns nothing. The charId, apiKey, and userId are all accurate. The response is just nothing. I can get it if I query and process the Eve XML API myself. Do you see something I'm doing wrong here?
Thanks for all your help, by the way!
|
Raser Moonstrider
Deep Core Crusaders
|
Posted - 2009.08.29 05:34:00 -
[9]
fyi: this is simply from a syntax point of view, I don't know hardly anything about the api
So are you saying that the response itself (the raw data) is returning as nothing? I assume that you have tried entering in the charId and userId as original integers (not parsed out).
Anyways...I wouldn't think that it would be too hard to simply create a parser yourself for any other data that you might want, since you already seem to have one working.
|
Golden Gnu
Gallente The Golden Gnu Corp
|
Posted - 2009.08.29 10:15:00 -
[10]
Edited by: Golden Gnu on 29/08/2009 10:18:30
@Dretzle Omega it should be: response = parser.getEveCharacters(new ApiAuthorization(Integer.parseInt(userId), 0, apiKey)); ...where the userId is the user id from the http://www.eveonline.com/api/Default.asp
EDIT As you can not know characterID, yet. We just supply zero. It won't work for the other parsers, though... _________________ Download is the meaning of life, upload is the meaning of intelligent life EVE.NiKR.NET - home of jEveAssets |
|
|
|
|
Pages: 1 :: [one page] |