Java Client for Google Data API, One More Step to World Domination

I’ve featured a number of Google projects before, most of them I liked. Some look strange and pointless. But I’ve always found the documentation to be outstanding. Maybe a little too technical for many, but for some reason, it’s always just right for me. The Google Data API’s are just one more example. Currently I’m learning the Google Documents List Data API and it looks like another winner.

I found the Google Documents List Data API through a strange detour. I want to generate PDF files on Google AppEngine, but sadly,

the most popular and advanced Java PDF library, iText, is not (yet?) fully compatible with Google AppEngine. There are some hacks out there to get it working, but I’m not too much of a fan for starting out with a hacked and unsupported library.

So after some googling (what else?) I stumbled upon the perfect solution: Google Documents can be exported to PDF, they can be used as templates and, best of all, it is possible to use all of that functionality from inside a Java program.

As always, Google has a strong preference for Eclipse. If you go with that flow, they have a long and detailed document to get you started. If you want to use other IDEs or continuously integrate, there are ANT build scripts included with the distribution. And if you look around, there will undoubtedly be Maven integration plugins too.

Once that is taken care of, the Java Language Guide for the Google Documents List Data API is an introduction to pretty much every task you’ll want to do with the API.