|
Flickr API docs outline in sidebar [updated 5-Jan]
 |
This is a simple tool to facilitate browsing the Flickr API documentation.
Drag this Grazr widget’s link and drop it to the Bookmarks Toolbar (you are using Firefox, aren’t you?). Now right-click on the bookmark where you’ve just dropped it and in “Properties”, check the “Load this bookmark in the sidebar” box*. You’re done.
Now, clicking on the bookmark in the toolbar will load the Flickr API’s outline in the sidebar (view a snapshot of the expanded outline). Navigate down the hierarchy to your desired Flickr API method/feed/whatever and clicking on it will load its corresponding documentation in the main window.
Note that the widget displays a live outline of the Flickr API i.e. when Flickr will add a new feed or a new API method, it will automatically be reflected in the outline in your sidebar.
If for some strange reason you’re using Internet Explorer, you may still use this widget and embed it in any HTML page you like, but I think you can’t load it in the sidebar.
Tech info
What you see in the Grazr widget is the rendering of a (static) OPML document that itself links to other OPML documents that are generated dynamically, as follows…
The “Methods” outline is an OPML document that is generated by transforming the response of flickr.reflection.getMethods via an XSL transform (currently using W3C’s Online XSLT 2.0 service).
Since the Flickr API currently doesn’t provide the list of available feeds programmatically, the “Feeds” outline is generated by a Dapper service that scrapes the list of available Flickr feeds from Flickr’s feeds page’s HTML and outputs it as an XML document, and then transforms that document via an XSL transform into an OPML document.
What is also interesting (i.e. hackable) is the Grazr widget’s URL itself http://grazr.com/gzpanel.html↵
?linktarget=_main↵
&exp=methods↵
&view=o↵
&file=http://dev.dwardu.info/flickr/api-docs/ “linktarget=_main” instructs the Grazr widget to load links that are clicked in the widget inside the main window, as by default they would open in a new “_blank” window. “exp=methods” makes the widget load and expand the API methods outline once by default (as this is most probably the one you want to use). “view=o” loads the outline view, and the “file” parameter points to the OPML outline document. More on these parameters here…
Backlinks
• Flickr APIs make for good Grazing – Tina Gasperson, Grazr Feedonomics Blog, 31-Dec-2007
Originally posted at 8:49PM, 29 December 2007 PDT
(
permalink
)
alto maltés edited this topic 6 months ago.
|
 |
This will be useful, thanks.
You can also add grazr.com/gzpanel.html?view=o&file=http://dev.dwardu.... to bookmark and on bookmark properties, check the Load this bookmark in the sidebar checkbox, without installing the extension.
Originally posted 6 months ago.
(
permalink
)
Zoolcar9 edited this topic 6 months ago.
|
 |
Zoolcar9, great, thanks for the tip!
However then it’s better to bookmark this instead, so that it opens in “outline” rather than “slider” view… what do you think?
Posted 6 months ago.
(
permalink
)
|
 |
Ah, so that's what the view=o parameter is for. Yes, that's even better. Thanks again.
I updated my post.
Posted 6 months ago.
(
permalink
)
|
 |
Cool update…
:)
Originally posted 6 months ago.
(
permalink
)
alto maltés edited this topic 6 months ago.
|
Would you like to comment?
Sign up for a free account, or sign in (if you're already a member).
|
|