Dart应用程序如何从Google电子表格中读取单元格数据 [英] How can a Dart application read cell data from google spreadsheets

查看:150
本文介绍了Dart应用程序如何从Google电子表格中读取单元格数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从google docs电子表格中读取数据到dart网络应用程序中需要哪些可能的选项和设置? dart需要gdata REST api的包装吗?有任何dart项目或示例与google文档交互吗?

What are the possible options and setups one would need for reading data out of a google docs spreadsheet into a dart web application? Does dart need the wrapper around gdata REST api to do this? Has any dart project or sample interacted with google docs?

推荐答案

较新的Google API有一个通用的API基础架构,客户端库始终是最新的。有一个Dart的客户端库(http://docs.google-api-dart-client.googlecode.com/git/index.html)。

Newer Google APIs have a common API infrastructure where the client libraries are always up to date. There is such a client library for Dart (http://docs.google-api-dart-client.googlecode.com/git/index.html).

但是,Google Spreadsheets似乎仍在使用称为GData的旧API基础架构。没有Data的GData客户端库,我知道。

However, it looks like Google Spreadsheets is still using an older API infrastructure called GData. There is no GData client library for Dart that I know of.

因此,我认为最明智的做法是做原始的HTTP调用。我不知道你是否试图在客户端或服务器上这样做。如果您要在客户端上执行此操作,则必须确保Google Spreadsheets支持CORS。

Hence, I think the most sensible thing to do is to make raw HTTP calls. I'm not sure if you're trying to do this on the client or the server. If you're trying to do it on the client, you're going to have to make sure Google Spreadsheets supports CORS.

如果您正在使用其他程序语言在服务器上,有一个类似于该语言的GData客户端库。请参阅(https://developers.google.com/google-apps/spreadsheets/#setting_up_your_client_library)。

If you happen to be using a different programming language on the server, there is like a GData client library for that language. See (https://developers.google.com/google-apps/spreadsheets/#setting_up_your_client_library).

这篇关于Dart应用程序如何从Google电子表格中读取单元格数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆