一、Google Data API
为取存google各个服务的相关数据提供接口
http://code.google.com/intl/zh-CN/apis/gdata/
google data api依赖
见http://code.google.com/intl/zh-CN/apis/gdata/articles/java_client_lib.html
==============
activation.jar
mail.jar
servlet-api.jar
二、Google Contacts API
gdata-contacts依赖
见http://code.google.com/intl/zh-CN/apis/contacts/docs/2.0/developers_guide_java.html
======================
gdata-base-1.0.jar
gdata-core-1.0.jar
gdata-client-1.0.jar
gdata-client-meta-1.0.jar
google-collect-1.0-rc3.jar (google collect包,见http://code.google.com/p/google-collections/)
三、取联系人信息
这样连接会出现SSL问题,即:
[java] Caused by:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
请见http://code.google.com/intl/zh-CN/apis/gdata/articles/wireshark.html#problem
添加SSLUtilities类:
http://en.wikibooks.org/wiki/WebObjects/Web_Services/How_to_Trust_Any_SSL_Certificate