Introduction and Quick Start -- Overview of Services_Technorati
Description
Technorati is a blog search engine.
By indexing blogs and exploring links between them,
they provide tools for monitoring online conversations
taking place on and between blogs.
By far the richest source of this information
is through their REST-based API,
to which this module provides an OO PHP interface.
Full documentation for Technorati's API is available on their
developers' wiki.
To use the API you will need an
API key.
To protect against future changes to the
underlying API it is accessed using a factory method:
$tapi =& Services_Technorati::factory($api_key);
The Technorati API limits you to 500 queries
per day so those wishing to use it in a high-demand
environment will want to employ some caching.
Services_Technorati provides support for any caching
system with a Cache_Lite-like API.
To use a cache,
you will need to create it and then pass it
to the class in the factory:
Once you have instantiated the object
you can start passing in queries.
Each call takes the form of methodName(keyParameter, options)
where options is an array.
(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.)
The value returned from each query will be either
an array representing the unserialized XML or a PEAR Error.