Google Docs API

Google provides a rich set of libraries to access their services. For Project 3, you will be using the GData API to upload files from the user's computer to the user's Google Documents account. If you do not have a Google account, please sign up for one now. If you have never used Google Documents before, please go to http://docs.google.com and explore the functionality of Google's online MS Office-like software suite.

DocsUploadSample.java is a short program that demonstrates how to upload a file to a user's Google Documents account. To run this program, you will need to do the following:

    1. Download the gdata libraries from here: http://gdata-java-client.googlecode.com/files/gdata-src.java-1.45.0.zip
    2. Unzip the file. This will create a gdata directory.
    3. Create a project and the following jars to your classpath:
      1. From the gdata/java/lib directory:
        • gdata-base-1.0.jar
        • gdata-client-1.0.jar
        • gdata-client-meta-1.0.jar
        • gdata-core-1.0.jar
        • gdata-docs-3.0.jar
        • gdata-media-1.0.jar
      2. From the gdata/java/deps direcotry:
        • google-collect-1.0-rc1.jar
      3. From your previous downloads of the Java Mail library and Activation Framework:
        • mail.jar

This link http://code.google.com/apis/documents/code.html has several pointers to documentation and samples that will help you better understand how to use the gdata library.

This link http://code.google.com/apis/documents/docs/3.0/developers_guide_java.html has lots of sample code that uses the gdata libraries.

The Javadoc can be found here:

http://code.google.com/apis/gdata/javadoc/