Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit a1a82df

Browse files
author
vbarathan
committed
Added Google Contacts API
1 parent 5fd055b commit a1a82df

File tree

375 files changed

+13358
-1245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+13358
-1245
lines changed

INSTALL-samples.txt

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Installing GData Java Client API library
2+
========================================
3+
4+
Table of Contents
5+
------------------
6+
1. Package Contents
7+
2. Requirements
8+
3. Installation
9+
10+
PACKAGE CONTENTS:
11+
-----------------
12+
Google Data APIs ("GData" for short) Java client provides source code and
13+
libraries for interacting with GData-enabled services. This package includes
14+
1. Precompile java libraries under "gdata/java/lib".
15+
2. Third party dependencies under "gdata/java/third_party".
16+
3. GData-enabled service specific samples under "gdata/java/sample".
17+
4. Ant build configuration to run the sample code.
18+
5. Javadoc for client source under "gdata/java/doc".
19+
20+
REQUIREMENTS:
21+
-------------
22+
GData Java Client depends on following tools/platforms.
23+
1. Java Development Kit version 5.0 or greater. Latest version of JDK
24+
available for download from http://java.sun.com.
25+
2. Apache ANT version 1.7 or greater. Apache's ANT binary is available for
26+
download from http://ant.apache.org.
27+
28+
Following third_party dependency libraries are required to compile/run the
29+
samples.
30+
1. mail.jar in Sun's JavaMail API (version 1.4 or greater).
31+
Sun's JavaMail package available for download from
32+
"http://java.sun.com/products/javamail/downloads/index.html". This is only
33+
required for media specific APIs including Google Base data API,
34+
Document List data API, Picasa Web Album API and YouTube data API.
35+
2. activation.jar in Sun's JavaBeans Activation Framewrok.
36+
This is required only if using JDK version 1.5.
37+
Sun's JavaBeansActivationFramework is available for download from
38+
"http://java.sun.com/javase/technologies/desktop/javabeans/jaf/downloads/index.html".
39+
This is only required for media specific APIs including
40+
Google Base data API, Document List data API, Picasa Web Album API and
41+
YouTube data API.
42+
3. servlet.jar in Sun's Servlet API (version 2.3 or greater).
43+
This is required only if executing code samples in 'sample.authsub' or
44+
'sample.gbase.recipe' packages. Sun's Servlet API package can be
45+
downloaded from "http://java.sun.com/products/servlet/download.html".
46+
Download above mentioned third_party jar files and save under
47+
"gdata/java/third_party".
48+
49+
INSTALLATION:
50+
-------------
51+
1. Unpack gdata-samples.zip package to local folder.
52+
2. Edit "gdata/java/build-samples/build.properties" file to specify location
53+
of required third_party jar files. Also specify applicable input data
54+
for samples.
55+
3. To run a specific sample, execute the ant run target corresponding to the
56+
sample. For example to execute calendar sample, run command
57+
"ant -f build-samples.xml sample.calendar.run" from folder "gdata/java".

INSTALL.txt INSTALL-src.txt

+18-31
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,54 @@
1-
Installing GData Java Client API library
2-
========================================
1+
Installing GData Java Client API Source
2+
=======================================
33

44
Table of Contents
55
------------------
66
1. Package Contents
77
2. Requirements
88
3. Installation
9-
4. Executing Samples
109

1110
PACKAGE CONTENTS:
1211
-----------------
13-
Google Data APIs ("GData" for short) Java client provides source code and
12+
Google Data APIs ("GData" for short) Java client provides source code and
1413
libraries for interacting with GData-enabled services. This package includes
1514
1. GData Java client source under "gdata/java/src".
1615
2. GData Java client libraries under "gdata/java/lib".
17-
3. Ant build configuration to compile the source code.
16+
3. Ant build configuration to re-compile the source code.
1817
4. Javadoc for client source under "gdata/java/doc".
19-
5. GData-enabled service specific samples under "gdata/java/sample".
2018

2119
REQUIREMENTS:
2220
-------------
23-
GData Java Client depends on following external utilities/libraries on top of
21+
GData Java Client depends on following external utilities/libraries on top of
2422
standard Java installation.
2523
1. Java Development Kit version 5.0 or greater. Latest version of JDK
2624
available for download from http://java.sun.com.
2725
2. Apache ANT version 1.7 or greater. Apache's ANT binary is available for
2826
download from http://ant.apache.org.
2927
3. mail.jar in Sun's JavaMail API (version 1.4 or greater).
30-
Sun's JavaMail package available for download from
28+
Sun's JavaMail package available for download from
3129
"http://java.sun.com/products/javamail/downloads/index.html". This is only
32-
required for media specific APIs including Google Base data API,
30+
required for media specific APIs including Google Base data API,
3331
Document List data API, Picasa Web Album API and YouTube data API.
3432
4. activation.jar in Sun's JavaBeans Activation Framewrok.
3533
This is required only if using JDK version 1.5.
36-
Sun's JavaBeansActivationFramework is available for download from
37-
"http://java.sun.com/products/javabeans/jaf/downloads/index.html". This is
38-
only required for media specific APIs including Google Base data API,
39-
Document List data API, Picasa Web Album API and YouTube data API.
34+
Sun's JavaBeansActivationFramework is available for download from
35+
"http://java.sun.com/javase/technologies/desktop/javabeans/jaf/downloads/index.html".
36+
This is only required for media specific APIs including
37+
Google Base data API, Document List data API, Picasa Web Album API and
38+
YouTube data API.
4039
5. servlet.jar in Sun's Servlet API (version 2.3 or greater).
4140
This is required only if executing code samples in 'sample.authsub' or
4241
'sample.gbase.recipe' packages. Sun's Servlet API package can be
43-
downloaded from "http://java.sun.com/products/servlet/download.html". This
44-
is only required for media specific APIs including Document List Data API,
45-
Picasa Web Album API and YouTube Data API.
42+
downloaded from "http://java.sun.com/products/servlet/download.html".
4643

4744
INSTALLATION:
4845
-------------
4946
Update ant build configuration to point to right path for dependency jars.
50-
1. Unpack gdata.java.zip package to local folder.
51-
2. Edit the following lines in "gdata/java/build/build.properties" to point to
52-
correct path for dependency jar files
47+
1. Unpack gdata-src.zip package to local folder.
48+
2. Edit the following lines in "gdata/java/build-src/build.properties"
49+
to point to correct path for dependency jar files
5350
activation.jar=<path to activation.jar file>
5451
mail.jar=<path to mail.jar file>
5552
servlet.jar=<path to servlet.jar file>
56-
57-
EXECUTING SAMPLES:
58-
------------------
59-
GData-enabled service specific samples can be executed through ant build
60-
targets.
61-
1. Edit "gdata/java/build/build.properties" file to specify input data
62-
for samples. This step is required only for samples that use user data
63-
from build.properties file.
64-
2. To run a specific sample execute the ant run target corresponding to the
65-
sample. For example to execute calendar sample, run command
66-
"ant sample.calendar.run" from folder "gdata/java".
67-
53+
3. To recompile source files, execute the ant build target
54+
"ant -f build-src.xml" from folder "gdata/java".

README-samples.txt

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Google data API - README for samples package
2+
Mar 05, 2008
3+
4+
Overview
5+
========
6+
The Google data APIs ("GData" for short) provide a simple standard protocol for
7+
reading and writing data on the web. GData combines common XML-based
8+
syndication formats (Atom and RSS) with a feed-publishing system based on the
9+
Atom publishing protocol, plus some extensions for handling queries.
10+
11+
Google also provides a set of client libraries for interacting with
12+
GData-enabled services, in a variety of programming languages. Using these
13+
libraries, you can construct GData requests, send them to a service, and
14+
receive responses.
15+
16+
Several services currently support the GData API. A complete up-to-date list
17+
along with respective documentation can be found on the GData site at
18+
http://code.google.com/apis/gdata.
19+
20+
21+
Package information
22+
===================
23+
This package contains:
24+
o Code samples to interact with each of the Google Services using GData Java
25+
API.
26+
o Precompiled libraries to access supported Google Services using GData API.
27+
o Javadoc for GData API.
28+
29+
Refer to INSTALL-samples.txt for details on how to install and use this package.
30+
31+
Related Resources:
32+
==================
33+
1. GData API documentation:
34+
http://code.google.com/apis/gdata/
35+
2. First time users refer to getting started guide
36+
http://code.google.com/support/bin/answer.py?answer=78455&topic=12022
37+
3. Using Proxy Servers with GData Java client library
38+
http://code.google.com/support/bin/answer.py?answer=71349&topic=11369#java
39+
4. For questions/reporting bugs/feedback visit
40+
http://groups.google.com/group/google-help-dataapi

README.txt README-src.txt

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Google data API - README.TXT
1+
Google data API - README for source package
22
Mar 21, 2007
33

44
Overview
@@ -21,22 +21,23 @@ http://code.google.com/apis/gdata
2121
Package information
2222
===================
2323
The GData package contains:
24-
o documentation for GData, the GData-enabled services, and the client
25-
libraries
26-
o the Java client library, its sources, and build files
24+
o Java source code to interact with GData enabled Google Services.
25+
o Javadoc for the GData Java API.
2726

2827
The documentation can be found in the 'doc' folder. The package contains just
2928
the 'java' library which can be found in the 'java' folder. Refer to
30-
INSTALL.txt for details on package dependencies and install instructions.
31-
There are client libraries in various other languages including C#, PHP,
29+
INSTALL-src.txt for details on package dependencies and install instructions.
30+
There are client libraries in various other languages including C#, PHP,
3231
JavaScript and more. Please see the GData web page for information on obtaining
33-
other client libraries:
34-
http://code.google.com/apis/gdata
35-
36-
37-
Known Issues
38-
============
39-
40-
The Google data APIs and libraries are still in beta so please use one of
41-
the API support Google Groups to give us any feedback, issues or bugs:
42-
http://groups.google.com/group/google-help-dataapi
32+
other client libraries at http://code.google.com/apis/gdata.
33+
34+
Related Resources:
35+
==================
36+
1. GData API documentation:
37+
http://code.google.com/apis/gdata/
38+
2. First time users refer to getting started guide
39+
http://code.google.com/support/bin/answer.py?answer=78455&topic=12022
40+
3. Using Proxy Servers with GData Java client library
41+
http://code.google.com/support/bin/answer.py?answer=71349&topic=11369#java
42+
4. For questions/reporting bugs/feedback visit
43+
http://groups.google.com/group/google-help-dataapi

RELEASE_NOTES.txt

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
Google Data API - Release Notes
22

3+
Notes for v1.16.0
4+
-----------------
5+
Mar 05, 2008
6+
o Added Java client support for Google Contacts API.
7+
o Samples are packaged separately from source code. With this change, there
8+
will be two packages, gdata-src.java.zip which contains the API source
9+
and gdata-samples.java.zip which contains samples and precompiled lib.
10+
11+
Notes for v1.15.2
12+
-----------------
13+
Dec 27, 2007
14+
o Added support to upload image files using Document List Feed Data API.
315

416
Notes for v1.15.1
517
-----------------
618
Dec 6, 2007
7-
o Added support for media feed in Google Base data API. With the media feed
19+
o Added support for media feed in Google Base data API. With the media feed
820
support you can manage binary attachments to your Google Base items. With
921
this change you will require Java Mail and Java Activation Framework to
1022
use Google Base data API.
@@ -13,7 +25,7 @@ Notes for v1.15.0
1325
-----------------
1426
Nov 15, 2007
1527
o Added Java client support for Google Apps Email Migration API.
16-
o Removed GData API documentation from the release package. Online
28+
o Removed GData API documentation from the release package. Online
1729
documentation is available at http://code.google.com/apis/gdata.
1830

1931
Notes for v1.14.1
@@ -30,10 +42,10 @@ Notes for v1.14.0
3042
-----------------
3143
Aug 28, 2007
3244
o Added support for YouTube Data API.
33-
o Refactored core GData code to remove dependency on
34-
JavaMail, Java Activation Framework for non-media services.
35-
With this change, only media dependent services such as,
36-
Document List Data API, Picasa Web Album API and YouTube Data API require
45+
o Refactored core GData code to remove dependency on
46+
JavaMail, Java Activation Framework for non-media services.
47+
With this change, only media dependent services such as,
48+
Document List Data API, Picasa Web Album API and YouTube Data API require
3749
JavaMail and Java Activation Framework.
3850
o Simplified ant build configuration into multiple files. This may require
3951
updates to your IDE settings to point to new ant targets. For the list of
+21-47
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,40 @@
11
<!--
22
3-
Ant script to generate the GData java libraries and samples.
3+
Ant script to generate the GData API samples.
44
To build, run 'ant -f <path-to-this-file>'.
55
66
-->
77

8-
<project name="GData" default="build" basedir=".">
8+
<project name="gdata-samples" default="build" basedir=".">
99

1010
<!-- Include core build script -->
11-
<import file="build/core.xml"/>
11+
<import file="build-samples/core.xml"/>
1212

1313
<!-- Include property specific build scripts -->
14-
<import file="build/appsforyourdomain.xml"/>
15-
<import file="build/authsub.xml"/>
16-
<import file="build/blogger.xml"/>
17-
<import file="build/calendar.xml"/>
18-
<import file="build/codesearch.xml"/>
19-
<import file="build/docs.xml"/>
20-
<import file="build/gbase.xml"/>
21-
<import file="build/photos.xml"/>
22-
<import file="build/spreadsheet.xml"/>
23-
<import file="build/youtube.xml"/>
24-
25-
26-
<!-- ===================================================================== -->
27-
<!-- Build Library -->
28-
<!-- ===================================================================== -->
29-
30-
<!-- Build core and service specific libraries -->
31-
<target name="build">
32-
<antcall target="core.build.core"/>
33-
<antcall target="appsforyourdomain.build.appsforyourdomain"/>
34-
<antcall target="calendar.build.calendar"/>
35-
<antcall target="codesearch.build.codesearch"/>
36-
<antcall target="docs.build.docs"/>
37-
<antcall target="gbase.build.gbase"/>
38-
<antcall target="photos.build.photos"/>
39-
<antcall target="spreadsheet.build.spreadsheet"/>
40-
<antcall target="youtube.build.youtube"/>
41-
</target>
42-
43-
<target name="clean">
44-
<antcall target="core.clean.core"/>
45-
<antcall target="appsforyourdomain.clean.appsforyourdomain"/>
46-
<antcall target="calendar.clean.calendar"/>
47-
<antcall target="codesearch.clean.codesearch"/>
48-
<antcall target="docs.clean.docs"/>
49-
<antcall target="gbase.clean.gbase"/>
50-
<antcall target="photos.clean.photos"/>
51-
<antcall target="youtube.clean.youtube"/>
52-
</target>
14+
<import file="build-samples/appsforyourdomain.xml"/>
15+
<import file="build-samples/authsub.xml"/>
16+
<import file="build-samples/blogger.xml"/>
17+
<import file="build-samples/calendar.xml"/>
18+
<import file="build-samples/codesearch.xml"/>
19+
<import file="build-samples/contacts.xml"/>
20+
<import file="build-samples/docs.xml"/>
21+
<import file="build-samples/gbase.xml"/>
22+
<import file="build-samples/photos.xml"/>
23+
<import file="build-samples/spreadsheet.xml"/>
24+
<import file="build-samples/youtube.xml"/>
5325

5426

5527
<!-- ===================================================================== -->
5628
<!-- Build samples -->
5729
<!-- ===================================================================== -->
5830

59-
<target name="samples.build">
31+
<target name="build">
6032
<antcall target="appsforyourdomain.sample.appsforyourdomain.build"/>
6133
<antcall target="authsub.sample.authsub.build"/>
6234
<antcall target="blogger.sample.blogger.build"/>
6335
<antcall target="calendar.sample.calendar.build"/>
6436
<antcall target="codesearch.sample.codesearch.build"/>
37+
<antcall target="contacts.sample.contacts.build"/>
6538
<antcall target="core.sample.core.build"/>
6639
<antcall target="docs.sample.docs.build"/>
6740
<antcall target="gbase.sample.gbase.build"/>
@@ -70,12 +43,13 @@
7043
<antcall target="youtube.sample.youtube.build"/>
7144
</target>
7245

73-
<target name="samples.clean">
46+
<target name="clean">
7447
<antcall target="appsforyourdomain.sample.appsforyourdomain.clean"/>
7548
<antcall target="authsub.sample.authsub.clean"/>
7649
<antcall target="blogger.sample.blogger.clean"/>
7750
<antcall target="calendar.sample.calendar.clean"/>
7851
<antcall target="codesearch.sample.codesearch.clean"/>
52+
<antcall target="contacts.sample.contacts.clean"/>
7953
<antcall target="core.sample.core.clean"/>
8054
<antcall target="docs.sample.docs.clean"/>
8155
<antcall target="gbase.sample.gbase.clean"/>
@@ -87,8 +61,8 @@
8761

8862
<!-- ===================================================================== -->
8963
<!-- Global target -->
90-
<!-- ===================================================================== -->
91-
<target name="all" depends="clean,samples.clean,build,samples.build"
92-
description="Clean build and dist directories, then build dist"/>
64+
<!-- ===================================================================== -->
65+
<target name="all" depends="clean,build"
66+
description="Rebuild samples"/>
9367

9468
</project>

java/build-samples/.calendar.xml.swp

16 KB
Binary file not shown.

java/build-samples/.contacts.xml.swp

12 KB
Binary file not shown.

java/build-samples/.photos.xml.swp

12 KB
Binary file not shown.

0 commit comments

Comments
 (0)