Skip to content
Lodle edited this page May 13, 2014 · 4 revisions

Table of Contents

Crashlog Feed

This is used to get a list of crash dumps that have not been processed.

Input

URL

 * http://api.desura.com/1/crashlog

Post

 * username: Not Required, String. Username of a Desura account
 * password: Not Required, String. Password (or password hash) for that account
   * OR
 * token: Not Required, String. Security Token (contact Scott for it)

Process

 1. If the username '''AND''' password is provided attempt to login the user
 1. When wanting to get all unprocessed crashdumps this API is called
   * Only users with application admin read permission can access this API, otherwise a 108 (permission error) being thrown.
   * Any other errors will result in a 100 (generic error) message being thrown.
 1. If no errors occur getting the data, 0 (ok) will be returned

Output

0: Ok

<?xml version="1.0" encoding="utf-8"?> 
<crashlog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
 	<status code="0"/>
	<crash>
		<id>281</id>
		<date>20100726043337</date>
		<appid>500</appid>
		<build>483</build>
		<file>http://www.desura.com/api/crashdownload/281</file>
		<crashfile>Desura_Dump_20100625_153200.dmp.bz2</crashfile>
		<hash>3a243e2525cbf81de4f8ee92010ef889</hash>
		<os>Microsoft Windows Vista Home Premium Edition, 32&#45;bit Service Pack 2 (build 6002)</os>
		<member>1</member>
		<username>INtense!</username>
	</crash>
	<crash>
		<id>277</id>
		<date>20100720171001</date>
		<appid>500</appid>
		<build>504</build>
		<file>http://www.desura.com/api/crashdownload/277</file>
		<crashfile>Desura_Dump_20100620_150100.dmp.bz2</crashfile>
		<hash>3a243e2525cbf81de4f8ee92010ef889</hash>
		<os>Microsoft Windows Vista Business Edition, 64&#45;bit Service Pack 2 (build 6002)</os>
		<member>1</member>
		<username>INtense!</username>
	</crash>
</crashlog>

108: Permission Error

<?xml version="1.0" encoding="utf-8"?> 
<crashlog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
	<status code="108">We&#39;re sorry but you do not have permission to view the app content requested.</status>
</crashlog>

100: Generic Error

As above, only with different status code and text.