28/10/2009

ShareFire and Google Reader – Update

So far so good, I’ve managed to set up the preferences panel so now you can log in, well save your Google email address and password.

ShareFire saves all these preferences using the EncryptedLocalStore class. The EncryptedLocalStore class is pretty neat, each AIR app has a encrypted store, for store preferences, password etc. I good intro article on this is by Kevin Hoyt on the Adobe Dev Center.

Storing these details is pretty straightforward, all the hard work is already set up in the ShareFire code. All I had to do was pass the values from the text boxes in the new Google Reader preferences panel, then pass these to the preferences class, referenced from the ModelLocator (remember ShareFire is built using the Cairngorm so makes use of the ModelLocator). The preferences class then writes these ‘preferences’ to the EncryptedLocalStore.

I’ve also been looking into the calls I need to make to Google Reader, here is a list of calls I think I need to make:

  • View feeds
  • View feed
  • Add feed
  • Delete feed
  • Edit/Update feed

Unfortunately there isn’t a published Google Reader API, but that hasn’t stopped others create Google Reader integrated RSS readers. I’ve been using a HTTP Sniffer to see the HTTP requests made to Google Reader for these commands.

So far I’ve managed to work out the view feeds and view feed commands, but my next task is to get ShareFire to know you use Google Reader when it starts up, but only if I have set this in the preferences, then I can look at loading the feeds from Google Reader.

No comments: