getNewThreads

Returns new threads

Parameter
  • category (optional): thread category (see below), defaults to “all”
  • type (optional): “created” to get new created threads, “updated” to get threads with new posts, defaults to “updated”
  • full (optional): 1 to get body of original post, 0 to get only thread info, defaults to 0
  • limit (optional): number of threads returned, defaults to 10
  • format (optional): format of the response, “xml” or “json”, defaults to “xml”


Sample

http://thats-me.ch/api/getNewThreads?category=quiz&type=new&full=1&limit=2


Sample Response

<?xml version="1.0" encoding="utf-8"?>

<threads>
<thread>
	<id>51</id>
	<title>Songzitatequiz</title>
	<creator>Hans</creator>
		<created>10.06.2011 15:45</created>
		<lastPostCreator>Fritz</lastPostCreator>
		<lastPostTimestamp>15.07.2011 09:33</lastPostTimestamp>
		<postCount>532</postCount>
		<body><![CDATA[Ein Songzitatequiz....lorem ipsum...]]></body>
</thread>
<thread>
	<id>50</id>
	<title>Autoquiz</title>
	<creator>Lukas</creator>
		<created>09.06.2011 18:51</created>
		<lastPostCreator>Andreas</lastPostCreator>
		<lastPostTimestamp>17.07.2011 18:12</lastPostTimestamp>
		<postCount>86</postCount>
		<body><![CDATA[Ein Autoquiz....lorem ipsum...]]></body>
</thread>
</threads>

Comment
Threads are returned ordered by creation date if type is “new” and by date of last post if type is “updated”. Order is descending (newest first).

Last edited Jul 28, 2011 at 2:05 PM by cansik, version 1

Comments

No comments yet.