These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Standings list - ContactID validation

Author
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#1 - 2012-11-28 11:17:19 UTC  |  Edited by: Ynot Eyob
Im working on an alliance IGB NeoCom

Im in progress of making a standing page for alliance members to see and comments.

I have no issues getting the alliance contactslist trough API but..

Where or how can i validate the ContactID to see if its a Player, Corp or Alliance the easieste way?

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Desmont McCallock
#2 - 2012-11-28 15:50:57 UTC
CharacterInfo and CorporationSheet trial and error is your only solution.
Cyerus
University of Caille
Gallente Federation
#3 - 2012-11-28 18:01:08 UTC
Had this discussion on IRC aswell for the last couple of days, where the only way to check which types it is is trial and error, with the possibility of the API servers blacklisting you.

Alliances can be checked by querying the id through AllianceList.xml.aspx.
Corporations using CorporationSheet.xml.aspx through trial and error
Character can be assumed if CorporationSheet.xml.aspx throws error 523.

Still, CCP, please include a typeID (or something similar) to the ContactList to let us know if 0 - Character, 1 - Corporation or 2 - Alliance.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#4 - 2012-11-29 07:24:24 UTC
Well joy.

Forutnally im gona update the alliancelist in the database once a day and then check up uppon already known Ids in the database before i check the API for errors. Some where in the WIKI i read that you from the ID number if you were smart could see if was a Charater, Corp or alliance, but i havnt been able to see any commen way any of them resive their IDs.

But i agree

CCP please include the typeID to the ContactLists

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".