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.
 

Unique KeyIds

First post
Author
Talaan Stardrifter
State War Academy
Caldari State
#1 - 2011-12-30 05:22:28 UTC
Can I assume that that a User's KeyId is unique amongst all keys?
I.e., can I define a table using the KeyId as a primary key and expect no conflicts?

"Example SQL" wrote:

Create Table ApiKeys (
KeyId BigInt NOT NULL Primary Key,
KeyCode Char(64) NULL
)
CCP Prism X
C C P
C C P Alliance
#2 - 2011-12-30 08:17:25 UTC
Yes you can.

You'd probably want to store the keys access mask as well in there, and do a call to http://api.eveonline.com/api/CallList.xml.aspx to get the access list of the different pages to compare it against. You can get a keys access mask through the /account/APIKeyInfo.xml.aspx.