使用Java App Engine时可以访问gdata api吗?

发布于 2024-07-27 04:13:25 字数 396 浏览 6 评论 0原文

我遇到了一个困境,我想创建一个操纵谷歌联系人信息的应用程序。 问题归结为Python仅支持1.0版本的api,而Java支持3.0版本。

我也希望它是基于网络的,所以我正在查看谷歌应用程序引擎,但似乎只有应用程序引擎的python版本支持gdata api的导入,而java则不支持。

因此,它要么是基于 Web 的 1.0 版 API,要么是非基于 Web 的 3.0 版 API。

我实际上需要 3.0 版本才能访问谷歌联系人提供的额外字段。

所以我的问题是,有没有办法使用 Java 访问 Google App Engine 下的 gdata api?

如果没有,是否有 Python 版本 3.0 的 gdata api 的预计发布时间?

干杯。

I have a dilemma where I want to create an application that manipulates google contacts information. The problem comes down to the fact that Python only supports version 1.0 of the api whilst Java supports 3.0.

I also want it to be web-based so I'm having a look at google app engine, but it seems that only the python version of app engine supports the import of gdata apis whilst java does not.

So its either web based and version 1.0 of the api or non-web based and version 3.0 of the api.

I actually need version 3.0 to get access to the extra fields provided by google contacts.

So my question is, is there a way to get access to the gdata api under Google App Engine using Java?

If not is there an ETA on when version 3.0 of the gdata api will be released for python?

Cheers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

不如归去 2024-08-03 04:13:25

我正在研究 google data api 协议,它似乎解决了这个问题。

I'm having a look into the google data api protocol which seems to solve the problem.

烟酒忠诚 2024-08-03 04:13:25

Google 数据 API Java 客户端:link1

Google 数据 Java 客户端入门库link2

我想这就是您正在寻找的内容。

Google Data API Java Client : link1

Getting Started with the Google Data Java Client Library link2

I guess this is what you were looking for.

金兰素衣 2024-08-03 04:13:25

我将 GDATA api 用于我的 JAVA 应用程序引擎 Web 应用程序。 因此GDATA可以与JAVA运行时一起使用。

来自 http://code.google.com/appengine/kb/java.html

是的,Google Data Java 客户端库可以在 App Engine 中使用,但您需要设置一个配置选项以避免运行时权限错误。

将以下内容添加到您的 appengine-web .xml 文件:

<system-properties>
  <property name="com.google.gdata.DisableCookieHandler" value="true"/>
</system-properties>

如果不包含以下内容,您
可能会看到以下异常:
java.security.AccessControlException:
访问被拒绝(java.net.NetPermission
获取CookieHandler)

I use GDATA apis for my JAVA appengine webapp. So GDATA can be used with JAVA runtime.

From http://code.google.com/appengine/kb/java.html

Yes, the Google Data Java client library can be used in App Engine, but you need to set a configuration option to avoid a runtime permissions error.

Add the following to your appengine-web.xml file:

<system-properties>
  <property name="com.google.gdata.DisableCookieHandler" value="true"/>
</system-properties>

If the following is not included, you
may see the following exception:
java.security.AccessControlException:
access denied (java.net.NetPermission
getCookieHandler)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文