现在的位置: 首页 > 综合 > 正文

取Google地址本(gdata api)

2013年12月13日 ⁄ 综合 ⁄ 共 11071字 ⁄ 字号 评论关闭

一、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

抱歉!评论已关闭.