The Google Reader plugin allows you to display your shared, starred, and unread items from google reader within your site.
This plugin requires that you have an account with google reader.
The main tag for the plugin, {exp:google_reader}, supports a few parameters that allow you to customize the behavior:
To access a user's feed you have two options. The first is using the account's ID, as opposed to a email/password. Google exposes a user's shared items as a public Atom feed that anyone can access assuming they know the user ID (or said user sends them the link). If you need more than just shared items, use the email/password method.
To get the ID: log into Google Reader, go to your shared items, click "See your shared items page in a new window." You'll see a string of numbers in the URL you are taken to. If you use this method you need to provide the ID to the plugin:
If you use the email/password method you have access to all feeds for a user (this is the required method if you want to show starred or all feeds). Using this method requires these parameters:
There is one pair variable for the plugin, {item}, which represents a single item within the feed. Within this paired variable there are single variables representing the data for that individual item:
Well, more call than calls. As stated above, the only feed you can access without providing an email/password is the shared item feed. Once you've looked up your ID you can load your shared items (for the sake of example, the last 10) like this:
{exp:google_reader id='12006118737470781753' limit='10'}
Updated on {lastupdated format="%F %d, %Y"}
Logging in to Google Reader using your email and password gives you access to feeds beyond the shared item feed — specifically the starred items and all items feeds. An example call of logging in and showing your most 20 most recent starred items, including their summaries, is as follows:
{exp:google_reader email='someone@someisp.com' password='arealpassword' limit='20' type='starred'}
Updated on {lastupdated format="%F %d, %Y"}
{summary}
If you wanted to similarly output the most recent items in your feed, without limiting yourself to starred or shared, you'd do the following:
{exp:google_reader email='someone@someisp.com' password='arealpassword' limit='20' type='all'}
Updated on {lastupdated format="%F %d, %Y"}
{summary}
License: BSD License
Version: 1.0 (2009-12-22)
Download Latest: EE-Reader.zip
Repository: Github
Need help or have something you'd like added to the library? Send me an email, I'll be happy to help.