This guide explains what you need to do to migrate your existing client applications from version 1 to version 2 of the Google Data APIs.
This guide is intended for developers who have written a client under version 1 of the Google Data APIs and want to update it to work with version 2.
If you haven't written a client under version 1, then you can ignore this guide; just read the regular version 2 developer's guides.
To update your version 1 client to version 2, here's what you need to do:
Note: Not all client libraries have been updated to version 2 yet. For information on which client libraries have been updated, see the developer's guide landing page for the service you're working with.
To update your client if you used the raw protocol:
GData-Version: 2) to every HTTP request you send. Alternatively, add a query parameter (v=2) to the URL of every request.v=2 query parameter to the URI). The server returns the version 2 representation of the entry, including the new URIs, which you can store in place of the old ones.app) has been changed from http://purl.org/atom/app to http://www.w3.org/2007/app.openSearch) has been changed from http://a9.com/-/spec/opensearchrss/1.0/ to http://a9.com/-/spec/opensearch/1.1/.The following table shows the current version number for each Data API, as of November 12, 2008. For the most up-to-date information, see the service-specific documentation.
All version 2 Data APIs are AtomPub-compliant unless specified otherwise. All version 1 Data APIs are compliant with the draft AtomPub specification and with OpenSearch 1.0.
In the following table, the "Strong ETags?" column indicates whether the service provides strong ETags on at least some entry types. (Some services may provide strong ETags for some entry types but not for others.) If a service is marked as "no" in that column, then it provides only weak ETags. Version-1 services don't support ETags at all, so they're marked "N/A".
| Data API | Current version | Strong ETags? |
|---|---|---|
| Google Apps | 1 | N/A |
| Google Base | 2 | no |
| Blogger | 2 | no |
| Book Search | 1 | N/A |
| Calendar | 2 | yes |
| Code Search | 2 | no ETag support |
| Contacts | 2 | yes |
| Documents List | 2 | yes |
| Finance Portfolio | 1 | N/A |
| Health | 2 | no |
| Notebook | 2 | no |
| Picasa Web Albums | 1 | N/A |
| Spreadsheets | 2 | yes |
| Webmaster Tools | 2 | no |
| YouTube | 2 | no |