Moving to the Blogger GData API

I’ve been involved with the Blogger API since it first became publicly available well before Google bought Pyra Labs but it never really got the general availability seal of approval. After Google bought the company it decided that ATOM was preferrable, being more of an industry standard. This was back when ATOM was at the 0.3 stage and even though 1.0 was approved quite some time ago Google didn’t move to it very quickly.

However, now that the Blogger overhaul is in beta they’ve unveiled the Blogger variant of their GData API, which is closely based on ATOM 1.0. I was going to take a whack at updating the old class library but Eris Ristemena has got a PHP implementation out already, saving me the trouble. Since the Blogger folks have said that the support for the old Blogger API will be going away shortly after Blogger goes out of beta this is very definitely a good thing.

While the initial release did not include the ability to retrieve a single specific post, which is my primary use, this morning he let me know the 0.0.2 version was published and has this function so I rewrote my utility function to use it. You can see it in action on the Book Reviews page (just click any book title to see the review open in place) or on any single review page (for example), though the code does seem to need a little more testing–not sure if the problem is with the Blogger server side or Eris’s code, but there is definitely an inconsistency over different posts.

Sweet!