Author |
Thread Statistics | Show CCP posts - 2 post(s) |

Tiberius Xavier
Eternity INC. Project Alice.
|
Posted - 2008.05.29 21:55:00 -
[1]
Originally by: Callis Iqnatius ok i have worked out how to get the list into a list box. (well at least it compiles :P)
but when i type in my API details i get
Unable to cast object of type 'System.Windows.Forms..TextBox' to type System.IConvertible)
the code for the login bit is
UserID = Convert.ToInt32(UserIDTB); CharacterID = Convert.ToInt32(CharacterIDTB); ApiKey = Convert.ToString(APIkeyTB);
EveApi api = new EveApi(UserID, ApiKey, CharacterID);
List<Alliance> alliances = api.GetAllianceData(); foreach (Alliance a in alliances) { lstAlliance.Items.Add(a.Name); }
any ideas???
You need to extract from the control. Add .Text to all your sources. UserID = Convert.ToInt32(UserIDTB.Text); CharacterID = Convert.ToInt32(CharacterIDTB.Text); ApiKey = Convert.ToString(APIkeyTB.Text);
Side question, is this API OpenSource?
|

Tiberius Xavier
Eternity INC. Project Alice.
|
Posted - 2008.05.30 01:14:00 -
[2]
Originally by: Callis Iqnatius
and as far as what i am writing is concerned yer i will be shearing my project and code (not that it will be any gd) not shore about the API tho :P
LOL. Let me rephrase my question. I'm not familiar with this API. I use libeveapi which I had to manually patch to work for my apps, and I was wondering if this particular API is open source. If it is open source, I may consider porting a current app over.
Originally by: Callis Iqnatius ok think im getting there....
List<EveAI.Live.Corporation.Starbase> starbaseList = api.GetCorporationStarbaseList();
works up till the 'api.GetCorporationStarbaseList()' this was copied from the wiki so i know its correct.... any one know what i have done wrong??
Again, I am not familiar with this API. Moreover, you are not being very descriptive the issue. How does it not work?
One possiblity is how did you construct the api object? It seems this library wants the userId, ApiKey and characterId up front in the constructor (which is deficient for what I need) The particular call you are making requires a full director key to acquire any data (for security reasons obviously).
|

Tiberius Xavier
Eternity INC. Project Alice.
|
Posted - 2008.05.30 13:43:00 -
[3]
Originally by: Callis Iqnatius from what i can tell.... when i use the line
EveApi api = new EveApi(UserID, ApiKey, CharacterID);
it grabs the data and Caches it.
then all i need to do is call the data i want.... which thinking about it doesn't make all that much sense but there you go :P
it worked with the alliance call
List<Alliance> alliances = api.GetAllianceData(); but that was copped directly from then wiki Linkage
the error i get the the line
List<EveAI.Live.Corporation.Starbase> starbaseList = api.GetCorporationStarbaseDetail();
is
C:\Documents and Settings\creature\My Documents\Visual Studio 2005\EVE Projects\EVEPOS V2.0\EVEPOS V2.0\Form1.cs(33,66): error CS0029: Cannot implicitly convert type 'EveAI.Live.Corporation.Starbase' to 'System.Collections.Generic.List<EveAI.Live.Corporation.Starbase>'
dose that make any sense?
Check what the return type from api.GetCorporationStarbaseDetail() because the error suggests that it does not return a List of Starbase. |

Tiberius Xavier
Eternity INC. Project Alice.
|
Posted - 2008.05.31 21:33:00 -
[4]
Originally by: Amida Ta
No, it is not open source. However feel free to look at the source using reflector or a similar tool.
There are two modes in EveAI. Simple and complex mode. Complex is harder to understand (as I didn't have time to write any doc yet). Simple is geared towards making multiple calls with same credentials. However you can change the credentials at runtime and you could also simply construct multiple api objects.
Thanks for the feedback Amida Ta.
Well I need a little more transparency for the apps I write. Although your library seems robust and well maintained, I think I will be more confortable with another direction. I just hate having to reduplicate effort but that seems like the only way I can be certain of controlling the entire developement.
|
|
|