My favorites | Sign in
Google
                

The Google Data JavaScript Client allows developers to make fully authenticated read, insert, update and delete operations on Google Data APIs. The current version is 2.2, and it supports the following services:

If you have any questions about using the client, please post them to the Google Data JavaScript Client Discussion Group.

Quick Start

In order to begin using the JavaScript client, include the following script snippet in the head section of your html page:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">

  // Load the latest version of the Google Data JavaScript Client
  google.load('gdata', '2.x');

  function onGoogleDataLoad() {
    // Put your code here
  }

  // Call function once the client has loaded
  google.setOnLoadCallback(onGoogleDataLoad);

</script>

Place any code that uses the JavaScript client in the onGoogleDataLoad() function. Continue reading to learn more and to see examples.

Documentation

Here's an overview of how to use the JavaScript Client. There are more details about each JavaScript class available in the JavaScript Client Reference. If you'd like to learn more about the Google Data APIs in general, visit the Protocol Basics guide (v2.0). Also, there are user guides for each of the services supported by the JavaScript client:

Here are a few videos that also explain how to use the JavaScript Client:


Google Data JavaScript Client Library Introduction

Google Calendar JavaScript Tutorial

Examples

Each of the service-specific documentation guides above also contains an Interactive Developers Guide. The Interactive Developers Guide lets you to write and execute JavaScript code against the Google Data APIs right from your browser. In addition to that, here are a few examples that use the JavaScript Client (the source code for these examples can be found here):