|
|
|
|
|
|
|
|
|
|
|
|
Tech Jobs | Forum |
|
|
|
![]()
|
|
Meerkat: An Open Service API
Meerkat flavoursMeerkat flavours are predefined, yet customizable, templates defining
how Meerkat displays RSS stories. Specify your flavour of choice
on the URL-line using the
URL: http://meerkat.oreillynet.com/ Stories: 50 per screen Attributes: Action, Title, Link, Description, Source, Category, Date Meerkat's default flavour, providing a comprehensive interface for your RSS-reading convenience. Note: no _fl argument is needed for the default
flavour.
URL: http://meerkat.oreillynet.com/?_fl=tofeerkat Stories: 50 per screen Attributes: Action, Title, Link, Description, Source, Category, Date For those who prefer something a little lighter, the Tofeerkat interface is a compact version of the default, optimized for those who take full advantage of the power of Meerkat's Profiles.
URL: http://meerkat.oreillynet.com/?_fl=minimal Stories: 15 Attributes: Title, Link, Description?, Source?, Category?, Date? Designed for the minimalist, Meerkat's Minimal flavour is ideal for Lynx browsers, handhelds using AvantGo or the like, and wireless micro-browsers.
URL: http://meerkat.oreillynet.com/?_fl=rss10 Stories: 15 Default Attributes: Title, Link, Description?, Dublin Core Metadata? Coming full-circle, returns 15 stories as RSS 1.0, ready for incorporation into your web site or insertion into a database. Similar to the RSS 0.91 flavour below, Meerkat's RSS 1.0 includes Dublin Core Metadata via the RSS 1.0 Dublin Core module and will continue to evolve, supporting any other standard modules as they become available. RSS 0.91 URL: http://meerkat.oreillynet.com/?_fl=rss Stories: 15 Default Attributes: Title, Link, Description? Meerkat's RSS 0.91 flavour returns 15 stories as well-formed RSS 0.91.
URL: http://meerkat.oreillynet.com/?_fl=xml Stories: 15 Attributes: Title, Link, Description?, Source?, Category?, Date? Modeled loosely on RSS/0.91 format, the XML flavour gives you more of the information Meerkat collects for each story: source, category, and date. The rather simplistic DTD (Document Type Description), meerkat_xml_flavour.dtd is available for your perusal.
URL: http://meerkat.oreillynet.com/?_fl=js Stories: 15 Attributes: Title, Link, Description?, Source?, Category?, Date? Meerkat's JavaScript Source (.js) flavour is probably the most exciting to Web designers with little or no programming experience. If you know basic HTML, you can insert Meerkat stories right into your web site with a copy and a paste. Simply insert the following line into your HTML document where you'd like the stories to appear:
JavaScript-enabled Web browsers, upon encountering this tag, will grab the stories from Meerkat and insert them right into the page. But wait, there's more! Meerkat's JavaScript Source flavour even has stylesheet support, so you can even customize the appearance of the various story elements using standard CSS (cascading style sheets). The following CSS classes correspond to the elements of each story:
For example, the following sample HTML code snippet:
...produces a page similar to this:
PHP Serialized String
This simple block of code yields an array (actually an array of arrays of arrays ;-) as if constructed thusly:
Printing the second story's title is as simple as:
Sherlock Plugin Here are a few screenshots to whet your appetite (or maybe make you supremely jealous if you're not a Mac user ; ).
N3 (experimental) URL: http://meerkat.oreillynet.com/?_fl=n3 Stories: 15 Default Attributes: Title, Link, Description?, Dublin Core Metadata? An experimental implementation of Tim Berners-Lee's Notation 3 RDF-alike. "This is not designed as an alternative to RDF's XML syntax which has the fundamental advantage that it is in XML. This is an academic excercise in language designed for a human-readable and scribblable language."
|
|
Sponsored by: |
|||||||||||||||||||||||||||||||||||||||||