Pages: [1] :: one page |
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Digital Anarchist
Minmatar
|
Posted - 2007.12.18 15:23:00 -
[1]
Edited by: Digital Anarchist on 18/12/2007 15:31:08 Firefox and IE can open raw xml files and it's easy to use a stylesheet to sort all the information you need. But I have no clue how to go further.
I presume getting the xml file involves using a hyperlink of the form:
http://api.eve-online.com/char/WalletJournal.xml.aspx?userID=xxxxx&apiKey=yyyyyyyyyyyyyyyyyy
where xxxxx and yyyyyy are the full access tokens generated by the api key page
Upon submitting the above information from my api page, I get the following output:
<eveapi version="2"> <currentTime>2007-12-18 15:23:51</currentTime> <error code="105">Invalid characterID.</error> <cachedUntil>2007-12-18 15:28:51</cachedUntil> </eveapi>
Trying to use the limited access api informations yields the following:
<eveapi version="2"> <currentTime>2007-12-18 15:26:22</currentTime> <error code="200">Current security level not high enough.</error> <cachedUntil>2007-12-18 15:31:22</cachedUntil> </eveapi>
However, if I use the limited access api to retrieve account balance (/char/AccountBalance.xml.aspx) or character sheet (/char/CharacterSheet.xml.aspx), it works.
What am I doing wrong?
------------------------ This space for rent |

Digital Anarchist
Minmatar
|
Posted - 2007.12.18 16:05:00 -
[2]
I tried to retreive the information with a POST request instead of GET (deprecated?).
api.html below vvvvvvv
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>API test</title> </head> <body>
<form action="http://api.eve-online.com/char/WalletJournal.xml.aspx" method="POST"> <input type="text" name="userID" value="userID here" /> <br /> <input type="text" name="apiKey" value="apiKey here" /> <br /> <input type="submit" value="Get API infomation" /> </form>
</body> </html>
the output is the following:
<eveapi version="2"> <currentTime>2007-12-18 16:02:14</currentTime> <error code="105">Invalid characterID.</error> <cachedUntil>2007-12-18 16:07:14</cachedUntil> </eveapi>
I double-checked, I submitted the information in the full access API. Help please 
------------------------ This space for rent |

DeTox MinRohim
Madhatters Inc. Enuma Elish.
|
Posted - 2007.12.18 16:28:00 -
[3]
Edited by: DeTox MinRohim on 18/12/2007 16:29:09 Invalid characterID
add &characterID=920107326 to your code or
<input type="text" name="characterID" value="920107326" />.
920107326 is your characterID
 ------ This sig space is Read-only ! omgalink - Online Skillsheet |

Ambo
2nd Outcasters
|
Posted - 2007.12.18 16:30:00 -
[4]
You also need a char ID parameter.
You can get charIDs by calling 'http://api.eve-online.com/account/Characters.xml.aspx' and passing in the userID and apiKey. You will then get back XML containing details of the characters on the specified account.
You can then add the charID paramter for the character you want when calling the journal or transaction pages.
--------------------------------------
Trader? Investor? Just want to track your finances? Check out EMMA |

Digital Anarchist
Minmatar
|
Posted - 2007.12.18 16:57:00 -
[5]
Edited by: Digital Anarchist on 18/12/2007 16:57:07 Thanks a lot, works now!
Unfortunately, it only retrieves one week's of data or a limited number of journal entries.
More precisely, what I would want to accomplish is a tool to check for corp spies. Before admittance, a new recruit submits the full api key data and the employer can check wallet donations from individual players.
I don't suppose the API data output can be that specific.
------------------------ This space for rent |

DeTox MinRohim
Madhatters Inc. Enuma Elish.
|
Posted - 2007.12.18 17:04:00 -
[6]
http://wiki.eve-dev.net/Main_Page
------ This sig space is Read-only ! omgalink - Online Skillsheet |

Ambo
2nd Outcasters
|
Posted - 2007.12.19 08:17:00 -
[7]
Well you can view donations from players but the API will only provide 1 week's worth of records. (Or 1000 records if there are less than 1000 records for the last week).
You simply can't access older data I'm afraid.
--------------------------------------
Trader? Investor? Just want to track your finances? Check out EMMA |
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |