URL:
http://twick.it/interfaces/api/random_twick.xml
http://twick.it/interfaces/api/random_twick.json
Funktion:
Liefert ein odere mehrer zufällige Twicks.
Parameter:
| Optional/Pflicht | Werte | Default | Bedeutung | |
| limit | optional | Ganzzahlen > 0 | 1 | Die Anzahl der Twicks, die zurückgegeben werden sollen. |
| lng | optional | "de", "en" | Sprache des Browsers | Sprache, in der gesucht werden soll. |
Rückgabe (XML):
http://twick.it/interfaces/api/random_twick.xml
<?xml version="1.0" encoding="utf-8"?>
<result>
<query>type=xml</query>
<topic>
<id>266</id>
<title>Gefangenen-Dilemma</title>
<url>http://twick.it/de/Gefangenen-Dilemma</url>
<tags>
<tag count="2">verhalten</tag>
<tag count="1">ergebnissen</tag>
<tag count="1">zeigt</tag>
<tag count="1">rationales</tag>
<tag count="1">schlechten</tag>
<tag count="1">paradoxon</tag>
<tag count="1">individuell</tag>
<tag count="1">spieletheorie</tag>
<tag count="1">spieler</tag>
<tag count="1">vertrauens</tag>
</tags>
<twick>
<id>449</id>
<acronym></acronym>
<text>Paradoxon aus der Spieletheorie. Zeigt, dass 2 Spieler durch individuell rationales
Verhalten zu kollektiv schlechten Ergebnissen kommen.</text>
<link>http://www.iterated-prisoners-dilemma.net/</link>
<url>http://twick.it/de/Gefangenen-Dilemma#449</url>
<standalone_url>
http://twick.it/twick/de/Gefangenen-Dilemma/derlangemarkus/449
</standalone_url>
<creation_date>2009-07-07 06:15:52</creation_date>
<rating>
<count>0</count>
<sum>0</sum>
<ratio>0</ratio>
</rating>
<user>
<gravatar>http://www.gravatar.com/...</gravatar>
<name>derlangemarkus (Markus Möller)</name>
<url>http://twick.it/user/derlangemarkus</url>
</user>
</twick>
</topic>
</result>
Rückgabe (JSON):
http://twick.it/interfaces/api/random_twick.json
{
"query" : "type=json",
"topics" : [
{
"topic" : {
"id" : "807",
"title" : "auf den Punkt kommen",
"url" : "http://twick.it/de/auf-den-Punkt-kommen",
"tags" : [
{
"tag" : "große",
"count" : 1
},
{
"tag" : "formuliert",
"count" : 1
},
{
"tag" : "aussage",
"count" : 1
},
{
"tag" : "kern",
"count" : 1
},
{
"tag" : "ohne",
"count" : 1
},
{
"tag" : "besagt",
"count" : 1
},
{
"tag" : "redewendung",
"count" : 1
},
{
"tag" : "stattdessen",
"count" : 1
},
{
"tag" : "umhergeredet",
"count" : 1
},
{
"tag" : "lange",
"count" : 1
}
],
"twick" : {
"id" : 1092,
"acronym" : "",
"text" : "Redewendung, die besagt, dass nicht lange umhergeredet wird. Stattdessen
wird ohne große Umschweife der Kern der Aussage formuliert.",
"link" : "",
"url" : "http://twick.it/de/auf-den-Punkt-kommen#1092",
"standalone_url" : "",
"creation_date" : "2009-08-02 12:38:10",
"rating" : {
"count" : 0,
"sum" : 0,
"ratio" : 0
},
"user" : {
"gravatar" : "http://www.gravatar.com/...",
"name" : "derlangemarkus (Markus Möller)",
"url" : "http://twick.it/user/derlangemarkus"
}
}
}
}
]
}


Suchen
2D
