Thursday, September 8, 2011

Tool: Google APIs Client Library for PHP (Beta)

If u php... Probably other bindings to this same data. 

Google APIs Client Library for PHP (Beta)

By Chirag Shah, Developer Programs Engineer

Today we are announcing a major milestone for another one of the Google APIs client libraries. The Google APIs Client Library for PHP has officially reached Beta.

This means we're comfortable enough with the stability and features of the library that we'd like you to start building real production applications on top of it and send us your feedback. The library now includes service-specific libraries and samples for several Google APIs, built on our new client library generation infrastructure.

The Google API PHP client supports the following Google APIs right now, with more on the way.

  • Books API - Sample

  • Latitude API - Sample

  • Page Speed Online API - Sample

  • Tasks API - Sample

  • URL Shortener API - Sample

  • To grab the latest version of the library, simply run the following commands:

    curl "" -Otar -xvf google-api-php-client-0.4.1.tar.gz cd google-api-php-client/examples/
    Here is some sample code that demonstrates how to use the library and the Google Books API to search for and print the titles of free ebooks by Henry David Thoreau:

    <?phprequire_once 'path/to/src/apiClient.php';require_once 'path/to/src/contrib/apiBooksService.php';$client = new apiClient();$client->setApplicationName("My_Books_API_Example"); $service = new apiBooksService($client);$optParams = array('filter' => 'free-ebooks'...

    Sent from my iPhone