I am a user of Google Reader to get through the vast amounts of RSS feeds I subscribed to. I think it is safe to say that reading RSS and twittering has replaced most of my web surfing.
Like most big RSS readers, Google reader also allows you to share great finds you had with people who want to and are in your social neighbourhood. You can either get these finds as a feed or as a little badge (called a clip in Google lingo) to include in your blog or other sites.
If you look at the generated script includes you’ll find for example the following URL ( added spaces to avoid breaking my blog :) )
All you need is your user ID, which you can get this one easily from your shared items homepage that Google Reader offers. In my case this is http://www.google.com/reader/shared/07479231772993841072.
The other interesting parameters of the JSON API are the
n parameter defining the amount of items and the
callback parameter defining the name of the function call wrapped around the JSON data.
Putting all of this together it was easy to create a badge that uses the following HTML to show off my shared items on Google Reader.
<div id=&quot;greader-shared-items&quot; class=&quot;items5&quot;> <p> <a href=&quot;http://www.google.com/reader/shared/07479231772993841072&quot;>My Shared Items on Google Reader</a> </p> </div> <script src=&quot;google-reader-badge-v1.0.js&quot;></script>
You can see the badge in action and download it for yourself on the demo page (using tutorialbuilder):