Latest Neocron News and Information
- New test server patch #564 has been released to Vedeena
Difference between revisions of "User:Brammers/RaresDBapi"
From Neocron Wiki
(New page....lots to expand on.) |
|||
Line 5: | Line 5: | ||
== Methods == | == Methods == | ||
− | Login(username,user_api_key,client_api_key) | + | '''Login(username,user_api_key,client_api_key)''' |
Returns a access token, which will be used for calls that need write access. | Returns a access token, which will be used for calls that need write access. | ||
− | Logout(token_key) | + | '''Logout(token_key)''' |
Logs out of the rares DB. | Logs out of the rares DB. | ||
+ | |||
+ | '''GetRaresList()''' | ||
+ | |||
+ | This returns an XML document with the Item ID's to Part ID's mapping, and the type of parts like on http://rares.techhaven.org/list.php | ||
+ | |||
+ | <raredb> | ||
+ | <item id="1" name="Terminator"> | ||
+ | <part id="7" type="TP"/> | ||
+ | <part id="8" type="HP"/> | ||
+ | <part id="9" type="FP"/> | ||
+ | <part id="10" type="CP"/> | ||
+ | <part id="11" type="OP"/> | ||
+ | </item> | ||
+ | </raredb> |
Revision as of 10:06, 7 April 2011
Rares DB API
Design in process....
Methods
Login(username,user_api_key,client_api_key)
Returns a access token, which will be used for calls that need write access.
Logout(token_key)
Logs out of the rares DB.
GetRaresList()
This returns an XML document with the Item ID's to Part ID's mapping, and the type of parts like on http://rares.techhaven.org/list.php
<raredb> <item id="1" name="Terminator"> <part id="7" type="TP"/> <part id="8" type="HP"/> <part id="9" type="FP"/> <part id="10" type="CP"/> <part id="11" type="OP"/> </item> </raredb>