PEAR::Services_Technorati
Language: PHP
Date: October 2004, February 2005-present
Technorati's blog search tools have defined the standard for engaging with blogs as they have emerged as a mass medium. For blog writers, the 'cosmos' is a fascinating way to keep track of who is linking in to and commenting on your writing, and the keyword search provides a powerful tool to follow the zeitgeist.
This module is a PHP wrapper around Technorati's REST-based web services API, providing a simple interface for PHP coders wanting to make use of the API. The first version was written in October 2004, based on the TechnoratiAPI.pm perl module making use of Keith Devens' XML Library. The latest version is written as a PEAR module and makes use of PEAR's XML parsing, HTTP, and Caching modules.
The package was accepted into PEAR in March 2005, and its project page can be found here.
Examples
To instantiate the object you will need to have an API key and optionally to pass in an API-compatible cache object:
$tapi = Services_Technorati::factory($apiKey, $cacheObject);
To get the cosmos for http://www.example.com with up to 50 entries you would then use:
$cosmos = $tapi->cosmos('http://www.example.com', array('type' => 'weblog', 'limit' => 50));
To get an attention.xml file for use $username you would use:
$attentionXML = $techno->attention($username,$password);
Download
The latest version is 0.6.5beta. The source is available here and the PEAR package is available here.
The CVS version of the code can be found here.
