-
Notifications
You must be signed in to change notification settings - Fork 31
APIMemberData
Lodle edited this page May 13, 2014
·
4 revisions
The data request is used to get all games and mods in a users account, as well as all games and mods they have development access to.
URL
* http://api.desura.com/1/memberdata
1. When wanting to check for data this api is called * If the user cannot be logged in, a 104 (account not found error) will be thrown. * If the item can not be found it will be skipped and ignored * Any other errors will result in a 100 (generic error) message being thrown. 1. If valid information, 0 (ok) will be returned along with the item information of items that have been updated.
0: Ok
<?xml version="1.0" encoding="utf-8"?>
<memberdata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
<status code="0"/>
<games>
<game siteareaid="109">
<name>Battlefield 2</name>
<nameid>battlefield-2</nameid>
<summary>Summary Goes Here</summary>
<url>http://www.gamedev.com/games/battlefield-2</url>
<urledit>http://www.gamedev.com/games/edit/battlefield-2</urledit>
<urlpublish>http://www.gamedev.com/games/publish/battlefield-2</urlpublish>
<homepage>http://www.dice.se/</homepage>
<style>First Person Shooter</style>
<theme>Western</theme>
<type>Single & Multiplayer</type>
<indie>Commercial</indie>
<rating>0</rating>
<icon>http://media.gamedev.com/images/2/1/1/109/logo1.gif</icon>
<boxart>http://media.gamedev.com/images/2/1/1/109/icon1.gif</boxart>
<branches />
<dlc>0</dlc>
<downloadable>0</downloadable>
<uploadable>0</uploadable>
<devadmin>0</devadmin>
<developer sitearea="groups" siteareaid="1">
<name>dice</name>
<nameid>dice</nameid>
<url>http://www.gamedev.com/groups/dice</url>
</developer>
<publisher sitearea="groups" siteareaid="1">
<name>dice</name>
<nameid>dice</nameid>
<url>http://www.gamedev.com/groups/dice</url>
</publisher>
<engine siteareaid="1" />
<mods></mods>
</game>
<game siteareaid="1">
<name>Half-Life</name>
<nameid>half-life</nameid>
<summary>Summary goes here</summary>
<url>http://www.gamedev.com/games/half-life</url>
<urledit>http://www.gamedev.com/games/edit/half-life</urledit>
<urlpublish>http://www.gamedev.com/games/publish/half-life</urlpublish>
<homepage>http://www.valvesoftware.com/</homepage>
<style>First Person Shooter</style>
<theme>Fighter</theme>
<type>Single & Multiplayer</type>
<indie>Commercial</indie>
<rating>0</rating>
<icon>http://media.gamedev.com/images/2/1/1/109/logo1.gif</icon>
<boxart>http://media.gamedev.com/images/2/1/1/109/icon1.gif</boxart>
<branches />
<dlc>0</dlc>
<downloadable>0</downloadable>
<uploadable>0</uploadable>
<devadmin>1</devadmin>
<developer sitearea="members" siteareaid="1">
<name>INtense!</name>
<nameid>intense</nameid>
<url>http://www.gamedev.com/members/intense</url>
</developer>
<publisher sitearea="members" siteareaid="1">
<name>INtense!</name>
<nameid>intense</nameid>
<url>http://www.gamedev.com/members/intense</url>
</publisher>
<engine siteareaid="1" />
<mods>
<mod siteareaid="8518">
<name>United Coalition</name>
<nameid>united-coalition</nameid>
<summary>Summary goes here</summary>
<url>http://www.gamedev.com/mods/united-coalition</url>
<urledit>http://www.gamedev.com/mods/edit/united-coalition</urledit>
<urlpublish>http://www.gamedev.com/mods/publish/united-coalition</urlpublish>
<homepage>http://www.united-coalition.com</homepage>
<style>First Person Shooter</style>
<theme>Western</theme>
<type>Multiplayer</type>
<indie>Indie</indie>
<rating>0</rating>
<icon>http://media.gamedev.com/images/3/1/9/8518/icon.gif</icon>
<devadmin>0</devadmin>
<developer sitearea="groups" siteareaid="3">
<name>DesuraNET</name>
<nameid>desuranet</nameid>
<url>http://www.gamedev.com/groups/desuranet</url>
</developer>
<publisher sitearea="groups" siteareaid="3">
<name>DesuraNET</name>
<nameid>desuranet</nameid>
<url>http://www.gamedev.com/groups/desuranet</url>
</publisher>
</mod>
<mod siteareaid="3">
<name>Sample Mod</name>
<nameid>sample-mod</nameid>
<summary>Summary goes here</summary>
<url>http://www.gamedev.com/mods/sample-mod</url>
<urledit>http://www.gamedev.com/mods/edit/sample-mod</urledit>
<urlpublish>http://www.gamedev.com/mods/publish/sample-mod</urlpublish>
<homepage>http://sample.moddb.com</homepage>
<style>First Person Shooter</style>
<theme>Western</theme>
<type>Single Player</type>
<indie>Indie</indie>
<rating>6</rating>
<icon>http://media.gamedev.com/images/3/1/1/3/icon.gif</icon>
<uploadable>1</uploadable>
<devadmin>0</devadmin>
<developer sitearea="groups" siteareaid="2">
<name>DesuraNET</name>
<nameid>desuranet</nameid>
<url>http://www.gamedev.com/groups/desuranet</url>
</developer>
<publisher sitearea="groups" siteareaid="2">
<name>DesuraNET</name>
<nameid>desuranet</nameid>
<url>http://www.gamedev.com/groups/desuranet</url>
</publisher>
</mod>
</mods>
</game>
</games>
<platforms>
<platform id="100" name="windows">
<games>
<game siteareaid="109">
<mods></mods>
</game>
<game siteareaid="1">
<mods>
<mod siteareaid="8518">
<branches>
<branch id="17">
<name>Default</name>
<nameon>0</nameon>
<global>123</global>
<free>1</free>
<price></price>
<demo>0</demo>
<test>0</test>
<eula date="1286283967">http://www.gamedev.com/mods/sven-co-op/eula/37</eula>
<inviteonly>0</inviteonly>
<regionlock>0</regionlock>
<preload>20120716062301</preload>
<onaccount>0</onaccount>
<mcf id="84">
<build>3</build>
<version>4.07</version>
<filesize>410143799</filesize>
<installsize>820241115</installsize>
</mcf>
</branch>
</branches>
</mod>
<mod siteareaid="3">
<branches>
<branch id="17">
<name>Default</name>
<nameon>0</nameon>
<global>123</global>
<free>1</free>
<price></price>
<demo>0</demo>
<test>0</test>
<eula date="1286283967">http://www.gamedev.com/mods/sven-co-op/eula/37</eula>
<inviteonly>0</inviteonly>
<regionlock>0</regionlock>
<preload>20120716062301</preload>
<onaccount>0</onaccount>
<mcf id="84">
<build>3</build>
<version>4.07</version>
<filesize>410143799</filesize>
<installsize>820241115</installsize>
</mcf>
</branch>
</branches>
</mod>
</mods>
</game>
</games>
</platform>
</platforms>
</memberdata>
104: Invalid Username / Password
<?xml version="1.0" encoding="utf-8"?>
<memberdata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
<status code="104">We were unable to verify your login details, you will have to re-login.</status>
</memberdata>
100: Generic Error
As above, only with different status code and text.