More actions
→Using the API - Simple Examples: Added the Python EVE Api library |
m →In Browser: - Fixed formatting of return results |
||
| Line 41: | Line 41: | ||
<eveapi version="2"> | <eveapi version="2"> | ||
<currentTime>2012-03-20 20:21:17</currentTime> | <currentTime>2012-03-20 20:21:17</currentTime> | ||
<result> | <result> | ||
<rowset name="characters" key="characterID" columns="name,characterID,corporationName,corporationID"> | <rowset name="characters" key="characterID" columns="name,characterID,corporationName,corporationID"> | ||
<row name="YourCharactersName" characterID="YourCharactersID" corporationName="EVE University" corporationID="CorporationID"/> | <row name="YourCharactersName" characterID="YourCharactersID" corporationName="EVE University" | ||
</rowset> | corporationID="CorporationID"/> | ||
</result> | </rowset> | ||
<cachedUntil>2012-03-20 21:18:17</cachedUntil> | </result> | ||
</eveapi> | <cachedUntil>2012-03-20 21:18:17</cachedUntil> | ||
</eveapi> | |||
Now if you want to acces to you Assets List, then use the follow URL.You can get your characterID using the previous example. | Now if you want to acces to you Assets List, then use the follow URL.You can get your characterID using the previous example. | ||
https://api.eveonline.com/char/AssetList.xml.aspx?keyID=XXXXXX&vCode=XXXXXXXXXXXXXXXXXXX&characterID=XXXXXXX | https://api.eveonline.com/char/AssetList.xml.aspx?keyID=XXXXXX&vCode=XXXXXXXXXXXXXXXXXXX&characterID=XXXXXXX | ||
This will return a big list, that looks like this. | This will return a big list, that looks like this. | ||
<eveapi version="2"> | <eveapi version="2"> | ||
<currentTime>2012-03-20 20:39:17</currentTime> | <currentTime>2012-03-20 20:39:17</currentTime> | ||
<result> | <result> | ||
<rowset name="assets" key="itemID" columns="itemID,locationID,typeID,quantity,flag,singleton"> | <rowset name="assets" key="itemID" columns="itemID,locationID,typeID,quantity,flag,singleton"> | ||
<row itemID="1005838069096" locationID="60003493" typeID="34" quantity="1" flag="4" singleton="0"/> | <row itemID="1005838069096" locationID="60003493" typeID="34" quantity="1" flag="4" singleton="0"/> | ||
<row itemID="1005922778803" locationID="60004279" typeID="606" quantity="1" flag="4" singleton="1" rawQuantity="-1"> | <row itemID="1005922778803" locationID="60004279" typeID="606" quantity="1" flag="4" singleton="1" | ||
<rowset name="contents" key="itemID" columns="itemID,typeID,quantity,flag,singleton"> | rawQuantity="-1"> | ||
<row itemID="1005922778804" typeID="3640" quantity="1" flag="27" singleton="1" rawQuantity="-1"/> | <rowset name="contents" key="itemID" columns="itemID,typeID,quantity,flag,singleton"> | ||
<row itemID="1005922778805" typeID="3651" quantity="1" flag="28" singleton="1" rawQuantity="-1"/> | <row itemID="1005922778804" typeID="3640" quantity="1" flag="27" singleton="1" rawQuantity="-1"/> | ||
<row itemID="1005922778806" typeID="34" quantity="1" flag="5" singleton="0"/> | <row itemID="1005922778805" typeID="3651" quantity="1" flag="28" singleton="1" rawQuantity="-1"/> | ||
</rowset> | <row itemID="1005922778806" typeID="34" quantity="1" flag="5" singleton="0"/> | ||
</row> | </rowset> | ||
</row> | |||
itemID is a general ID, and it can change in time i.e if items are packaged. TypeID is a unique identifier of the kind of item. | itemID is a general ID, and it can change in time i.e if items are packaged. TypeID is a unique identifier of the kind of item. | ||