使用 C++ 访问 Google 数据

发布于 2024-09-25 18:58:18 字数 529 浏览 2 评论 0原文

我即将为 Total Commander 编写一个简单的插件。我需要与 Picasa 服务交互。我凝视了一段时间,发现:

1)gdata-cpp-util(一种 libcurl 和 libxml 的包装器) http://code.google.com/p/gdata-cpp-util/

2) 使用 gdata-java-client 进行 Google 数据传输并通过 JNI 与 C++ 代码交互 http://code.google.com/apis/gdata/docs/client -libraries.html

所以我的问题是使用 C++ 访问 Google 数据的最佳方式是什么?我想这个领域有经验丰富的人。

提前致谢。

I'm about to write an simple plugin for Total Commander. I need to interact with Picasa service. I goggled for a while and found:

1) gdata-cpp-util (kind of a wrapper for libcurl and libxml)
http://code.google.com/p/gdata-cpp-util/

2) use gdata-java-client for Google Data transmitting and interact with c++ code via JNI
http://code.google.com/apis/gdata/docs/client-libraries.html

So my queston is what is the best way to accessing Google Data with C++? I guess there are experienced people in that field.

Thanks in advance.

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

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

发布评论

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

评论(3

蓝天 2024-10-02 18:58:18

除了协议文档之外,Google 还为其当前 API 版本发布了 Java 库。如果你想要官方的,你几乎会关注 Java,因为其他“官方”库似乎需要很长时间才能赶上当前的协议版本。

另外,还有 来自 Gnome 项目的 libgdata,版本为 0.6.5,似乎已经成熟。要查看 PicasaWeb API 的文档,请下载 libgdata 版本并在 docs/reference/html 下查找。

API 预告片如下。唯一的缺点是它是用 C 编写的,而不是原生 C++。如果您为 C++ 编写了包装器,请发布它!

Google PicasaWeb API

  • GDataPicasaWebService — GData PicasaWeb 服务对象
  • GDataPicasaWebQuery — GData PicasaWeb 查询对象
  • GDataPicasaWebAlbum — GData PicasaWeb 相册对象
  • GDataPicasaWebFile — GData PicasaWeb 文件对象

Google publishes a Java library for their current API version in addition to the protocol documentation. If you want official, you're pretty much looking at Java because it seems to take a long time for the other "official" libraries to catch up to the current protocol version.

Alternatively, there is libgdata from the Gnome project which is at version 0.6.5 and seems to be mature. To see docs for the PicasaWeb API, download a libgdata release and look under docs/reference/html.

API teaser follows. The only drawback is that it is written in C and not native C++. If you write a wrapper for C++, publish it!

Google PicasaWeb API

  • GDataPicasaWebService — GData PicasaWeb service object
  • GDataPicasaWebQuery — GData PicasaWeb query object
  • GDataPicasaWebAlbum — GData PicasaWeb album object
  • GDataPicasaWebFile — GData PicasaWeb file object
雪落纷纷 2024-10-02 18:58:18

使用 Google Calenda 和 Note(尽管是 C#)做了一些。
我认为您应该使用一些东西来发出请求并使用 XMLparse 或 Google 支持的 API 库处理响应,以从中获取数据。
它们会每天都在变化那么使用他们的东西是最好的方法。

Did somes with Google Calenda and Note (though C#).
I think you should use some thing to make request and process response with XMLparse or Google supported API lib to get data from them.
They will change day by day then using their stuff is the best way.

大海や 2024-10-02 18:58:18

您应该看一下 Google 推出的新 C++ 客户端 API:
http://google.github.io/google-api-cpp -client/latest/index.html

我相信现在可以通过 Google+ API 访问照片:
https://google- api-client-libraries.appspot.com/resources/api-libraries/documentation/plus/v1/cpp/latest/

You should take a look at the new C++ client API that Google has introduced:
http://google.github.io/google-api-cpp-client/latest/index.html

The photos I believe now can be accessed through Google+ API:
https://google-api-client-libraries.appspot.com/resources/api-libraries/documentation/plus/v1/cpp/latest/

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