Accessing Google Data with C++

Titan picture Titan · Oct 5, 2010 · Viewed 7.6k times · Source

I'm about to write an simple plugin for Total Commander. I need to interact with Picasa service. I goggled for a while and found:

1) gdata-cpp-util (kind of a wrapper for libcurl and libxml) http://code.google.com/p/gdata-cpp-util/

2) use gdata-java-client for Google Data transmitting and interact with c++ code via JNI http://code.google.com/apis/gdata/docs/client-libraries.html

So my queston is what is the best way to accessing Google Data with C++? I guess there are experienced people in that field.

Thanks in advance.

Answer

Alex Hirzel picture Alex Hirzel · Oct 14, 2010

Google publishes a Java library for their current API version in addition to the protocol documentation. If you want official, you're pretty much looking at Java because it seems to take a long time for the other "official" libraries to catch up to the current protocol version.

Alternatively, there is libgdata from the Gnome project which is at version 0.6.5 and seems to be mature. To see docs for the PicasaWeb API, download a libgdata release and look under docs/reference/html.

API teaser follows. The only drawback is that it is written in C and not native C++. If you write a wrapper for C++, publish it!

Google PicasaWeb API

  • GDataPicasaWebService — GData PicasaWeb service object
  • GDataPicasaWebQuery — GData PicasaWeb query object
  • GDataPicasaWebAlbum — GData PicasaWeb album object
  • GDataPicasaWebFile — GData PicasaWeb file object