cvs: peardoc /fr/package/webservices/services-technorati intro.xml

From: Date: Tue, 09 Jan 2007 10:46:46 +0000
Subject: cvs: peardoc /fr/package/webservices/services-technorati intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9256@lists.php.net to get a copy of this message
moosh Tue Jan 9 10:46:46 2007 UTC Added files: /peardoc/fr/package/webservices/services-technorati intro.xml Log: - initial translation

http://cvs.php.net/viewvc.cgi/peardoc/fr/package/webservices/services-technorati/intro.xml?view=markup&rev=1.1 Index: peardoc/fr/package/webservices/services-technorati/intro.xml +++ peardoc/fr/package/webservices/services-technorati/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $id$ --> <!-- EN-Revision: 1.2 Maintainer: moosh Status: started --> <refentry id="package.webservices.services_technorati.intro"> <refnamediv> <refname>Introduction et Guide de démarrage</refname> <refpurpose>Aperçu de Services_Technorati</refpurpose> </refnamediv> <refsect1 id="package.webservices.services_technorati.intro.desc"> &title.desc; <para> Technorati est un moteur de recherche pour blog. En indexant les blogs et en explorant les liens entre eux, ce moteur fourni des outils pour suivre les conversations en ligne qui se forment entre les blogs. By far the richest source of this information is through their REST-based API, to which this module provides an OO PHP interface. La documentation complète pour l'API de Technorati est disponible sur le <ulink url="http://developers.technorati.com/wiki/TechnoratiApi">wiki des développeurs</ulink>. Pour utiliser l'API vous devez obtenir une <ulink url="http://technorati.com/developers/apikey.html">clé d'API</ulink>. </para> <para> Pour se protéger de modification future de l'API sous-jacente, on y accède par une méthode factory: <programlisting role="php"> $tapi =&amp; Services_Technorati::factory($api_key); </programlisting> </para> <para> L'API de Technorati vous limite à 500 par jour ce qui implique la nécéssiré d'utiliser un système de cache pour les environements à demande élevée. Services_Technorati fourni un support pour tous les systèmes de cache ayant une API comme celle de Cache_Lite. Pour utiliser un cache, Vous devez en créer un et le passer à la classe dans la méthode factory: <programlisting role="php"> $tapi =&amp; Services_Technorati::factory($api_key, $cache_object); </programlisting> </para> <para> Une fois que vous avez instancié l'objet, vous pourvez commencer à passer des requêtes. Chaque appel prend la forme de nomDeMethode(parametreClé, options) où options est un tableau associatif. <table> <title>Types de requêtes et leurs options</title> <tgroup cols="3"> <thead> <row> <entry>Nom de la requête</entry> <entry>Paramètre clé</entry> <entry>Options disponibles</entry> </row> </thead> <tbody> <row> <entry>cosmos</entry> <entry>url</entry> <entry>type, limit, start, current, claim, highlight</entry> </row> <row> <entry>search</entry> <entry>query keywords</entry> <entry>start, limit, claim</entry> </row> <row> <entry>outbound</entry> <entry>url</entry> <entry>start</entry> </row> <row> <entry>tag</entry> <entry>tag</entry> <entry>limit, start, format, excerptsize, topexcerptsize</entry> </row> <row> <entry>topTags</entry> <entry>-</entry> <entry>limit, start</entry> </row> <row> <entry>blogPostTags</entry> <entry>url</entry> <entry>limit</entry> </row> <row> <entry>getInfo</entry> <entry>username</entry> <entry>-</entry> </row> <row> <entry>blogInfo</entry> <entry>url</entry> <entry>-</entry> </row> </tbody> </tgroup> </table> (NB. Support for Technorati's attention. XML services is also included in accordance with the spec, but those services are currently in a state of flux so cannot be relied upon.) </para> <para> La valeur retournée par chaque requête sera selon les cas un tableau représentant le XML désérialisé ou une erreur PEAR. </para> <example> <title> Un exemple de retour avec la requête blogInfo (for 'jystewart') est: </title> <programlisting role="php"> <![CDATA[ Array ( [version] => 1.0 [document] => Array ( [result] => Array ( [username] => jystewart [firstname] => James [lastname] => Stewart ) [item] => Array ( [0] => Array ( [weblog] => Array ( [name] => little more than a placeholder [url] => http://james.anthropiccollective.org [rssurl] => http://james.anthropiccollective.org/index.rdf [atomurl] => http://james.anthropiccollective.org/atom.xml [inboundblogs] => 52 [inboundlinks] => 82 [lastupdate] => 2005-08-27 09:01:42 GMT [rank] => 7483 [lat] => 0 [lon] => 0 [lang] => 26110 [foafurl] => http://jystewart.net/foaf.rdf ) ) [1] => Array ( [weblog] => Array ( [name] => something approaching a photo album [url] => http://approach.anthropiccollective.org [rssurl] => [atomurl] => [inboundblogs] => 1 [inboundlinks] => 1 [lastupdate] => 2004-08-13 17:40:02 GMT [rank] => 240760 [lat] => 0 [lon] => 0 [lang] => 0 ) ) [2] => Array ( [weblog] => Array ( [name] => grwifi.net : wireless internet (wifi) in grand rapids, michigan [url] => http://grwifi.net [rssurl] => [atomurl] => http://grwifi.net/atom/ [inboundblogs] => 9 [inboundlinks] => 11 [lastupdate] => 2005-04-15 19:44:46 GMT [rank] => 50688 [lat] => 0 [lon] => 0 [lang] => 26110 ) ) [3] => Array ( [weblog] => Array ( [name] => a work on process [url] => http://jystewart.net/process [rssurl] => http://jystewart.net/process/feed/ [atomurl] => http://jystewart.net/process/feed/atom/ [inboundblogs] => 3 [inboundlinks] => 3 [lastupdate] => 2005-08-31 20:44:38 GMT [rank] => 132735 [lat] => 0 [lon] => 0 [lang] => 26110 [foafurl] => http://jystewart.net/foaf.rdf ) ) ) ) )]]></programlisting> </example> <para> Le détail complet du XML qui est retourné parTechnorati est décrit sur le <ulink url="http://developers.technorati.com/wiki/TechnoratiApi">wiki de développement</ulink> </para> </refsect1> </refentry>
« previous php.pear.doc (#9256) next »