Jouez à des milliers de quizz
et créez les vôtres gratuitement
se connecter   + Créer un Quizz
Appli gratuite LOL MDR Quizz
 

API oEmbed

Cette page décrit le fonctionnement de notre API oEmbed. En envoyant l'url d'un quizz, nous retournons le code HTML d'un quizz sous forme d'embed Flash. Ses dimensions par défaut sont de 450px de large et 337px de haut.

URL Scheme
http://www.quizz.biz/quizz-*.html

Endpoint
http://www.quizz.biz/api/oembed

Paramètres en GET
url
 Requis. l'URL du quizz à intégrer
format
 Optionel. xml ou json. (json par défaut)
maxheight
 Optionel. hauteur maximum
maxwidth
 Optionel. largeur maximum
design
 Optionel. codes couleurs ou votre login

Exemple de requête
http://www.quizz.biz/api/oembed?url=http://www.quizz.biz/quizz-339842.html&format=json

Réponse JSON
{
	"type":"rich",
	"version":"1.0",
	"title":"Quizz Des animaux pas si \u00e9vidents . . .",
	"author_name":"moquette",
	"author_url":"http:\/\/www.quizz.biz\/annuaire\/profil-moquette.html",
	"provider_name":"Quizz.biz",
	"provider_url":"http:\/\/www.quizz.biz",
	"thumbnail_url":"http:\/\/www.quizz.biz\/uploads\/quizz\/339842\/mini\/1_1.jpg?reload=1359194372",
	"thumbnail_width":"70",
	"thumbnail_height":"70",
	"html":"<object width=\"450\" height=\"337\"><param name=\"movie\" value=\"http:\/\/www.quizz.biz\/flash\/Quizz.swf\"><\/param><param name=\"allowFullScreen\" value=\"true\"><\/param><param name=\"allowscriptaccess\" value=\"always\"><\/param><param name=\"flashvars\" value=\"id=339842&host=http:\/\/www.quizz.biz&f=f&design=EDEFF4|3B5998|808080|3B5998|3B5998|000000|F4F4F4|Tahoma|14\"><\/param><embed src=\"http:\/\/www.quizz.biz\/flash\/Quizz.swf\" type=\"application\/x-shockwave-flash\" flashvars=\"id=339842&host=http:\/\/www.quizz.biz&f=f&design=EDEFF4|3B5998|808080|3B5998|3B5998|000000|F4F4F4|Tahoma|14\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"450\" height=\"337\"><\/embed><\/object>",
	"width":450,
	"height":337}

Réponse XML
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
	<type>rich</type>
	<version>1.0</version>
	<title>Quizz Des animaux pas si évidents . . .</title>
	<author_name>moquette</author_name>
	<author_url>http://www.quizz.biz/annuaire/profil-moquette.html</author_url>
	<provider_name>Quizz.biz</provider_name>
	<provider_url>http://www.quizz.biz</provider_url>
	<thumbnail_url>http://www.quizz.biz/uploads/quizz/339842/mini/1_1.jpg?reload=1359194420</thumbnail_url>
	<thumbnail_width>70</thumbnail_width>
	<thumbnail_height>70</thumbnail_height>
	<html>&lt;object width=&quot;450&quot; height=&quot;337&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.quizz.biz/flash/Quizz.swf&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;param name=&quot;flashvars&quot; value=&quot;id=339842&amp;host=http://www.quizz.biz&amp;f=f&amp;design=EDEFF4|3B5998|808080|3B5998|3B5998|000000|F4F4F4|Tahoma|14&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.quizz.biz/flash/Quizz.swf&quot; type=&quot;application/x-shockwave-flash&quot; flashvars=&quot;id=339842&amp;host=http://www.quizz.biz&amp;f=f&amp;design=EDEFF4|3B5998|808080|3B5998|3B5998|000000|F4F4F4|Tahoma|14&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;450&quot; height=&quot;337&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</html>
	<width>450</width>
	<height>337</height>
</oembed>

Résultat sur votre site



 



Généré le 23 Sept. 2014, 0h16