Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
TraderDragon
|
Posted - 2010.09.27 18:35:00 -
[1]
I am taking a stab at making a C# app using the libeveapi. I ran it once for one of my toon's just fine but now every time i run the app i only get Wallet exhausted: retry after 2010-09-27 19:12:37. Here is my code to see if anyone can help me out.
int entryNum = 0; bool done = false; WalletTransactions wT = EveApi.GetWalletTransactionsList(WalletTransactionListType.Character, loginToon.eveID, loginToon.charID, loginToon.eveKey, entryNum); while (!done) { wT.WalletTransactionItems.Initialize(); foreach (WalletTransactions.WalletTransactionItem wItem in wT.WalletTransactionItems) { int rPrice = (int)Math.Round(wItem.Price, 2); dgvTransaction.Rows.Add(wItem.TransactionDateTime.ToString(), wItem.Quantity.ToString(), wItem.TypeName.ToString(), rPrice.ToString(), wItem.ClientName.ToString(), wItem.StationName.ToString(), wItem.TransactionType.ToString()); } entryNum += wT.WalletTransactionItems.Length; if (wT.WalletTransactionItems.Length < 100) { done = true; } }
Also i am accessing the character information via an xml file i save the id's and apikey to. The xml file is serialized when saving and deserialized when "logging in".
Thanks in advanced! :)
|
Hel O'Ween
Men On A Mission
|
Posted - 2010.09.28 17:03:00 -
[2]
Originally by: TraderDragon I am taking a stab at making a C# app using the libeveapi. I ran it once for one of my toon's just fine but now every time i run the app i only get Wallet exhausted: retry after 2010-09-27 19:12:37.
This is a server reply. A very meanigful one, actually, as it spells out exactly what has happened and how to react.
And its a perfectly valid and normal server reply. Once you queried a certain API, you can't query it (from the same IP for the same account) until the cache has expired. Look at the cachedUntil field returned by each API (XML). -- EVEWalletAware - an offline wallet manager |
TraderDragon
|
Posted - 2010.09.29 16:04:00 -
[3]
Originally by: Hel O'Ween
Originally by: TraderDragon I am taking a stab at making a C# app using the libeveapi. I ran it once for one of my toon's just fine but now every time i run the app i only get Wallet exhausted: retry after 2010-09-27 19:12:37.
This is a server reply. A very meanigful one, actually, as it spells out exactly what has happened and how to react.
And its a perfectly valid and normal server reply. Once you queried a certain API, you can't query it (from the same IP for the same account) until the cache has expired. Look at the cachedUntil field returned by each API (XML).
Thanks!! I did know that it was a server reply but i didn't fully understand what it was telling me because i didn't know that cretin api's can only be called on once every x amount of time. I will just store that information as well to the XML file. I was hoping to just call it on the fly but i will store it and call on it if an exception is thrown. Thanks again!!
|
Hel O'Ween
Men On A Mission
|
Posted - 2010.09.29 16:51:00 -
[4]
Originally by: TraderDragon
[...] but i will store it and call on it if an exception is thrown.
This is the wrong way to do it. Download it, store it, remember the cachedUntil date/time (that value is always EVE time (GTM), so you need to take your local time zone + DST into account), don't attempt another download before that has expired. That saves you/your app from wasting time and the API servers from load. -- EVEWalletAware - an offline wallet manager |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |