使用Google API Java客户端将数据库上传到Google电子表格

时间:2021-08-11 14:24:18

I wanted to get some feedback before I jumped into this. I am interested in making my Android Application upload my SQLite database to Google Spreadsheet. I have gotten some mixed feedback from several people so I wanted to make sure I am going in the right direction.

在我跳到此之前,我想得到一些反馈。我有兴趣让我的Android应用程序将我的SQLite数据库上传到Google Spreadsheet。我得到了一些人的反馈,所以我想确保我朝着正确的方向前进。

Should I use Google API Java Client, or more specifically Google Documents List API to create a spreadsheet and then Google Spreadsheet API to add and edit data in the spreadsheet. Is this is the right approach for what I am doing? If so, are you aware of some useful sample code?

我应该使用Google API Java客户端,还是更具体的Google文档列表API来创建电子表格,然后使用Google Spreadsheet API在电子表格中添加和编辑数据。这是我正在做的事情的正确方法吗?如果是这样,你知道一些有用的示例代码吗?

I would really appreciate someones guidance in this matter. If something in my question is unclear, please ask.

我真的很感激有人在这件事上的指导。如果我的问题中的某些内容不清楚,请询问。

Cheers, George

干杯,乔治

1 个解决方案

#1


0  

do not use the Documents List API which is deprecated.

不要使用不推荐使用的Documents List API。

All the actions you list (create a spreadsheet and fill it in) can be realized with the GData Spreadsheets API. The documentation contains good examples in Java.

您列出的所有操作(创建电子表格并填写)都可以使用GData Spreadsheets API实现。该文档包含Java中的好例子。

If you also want to share the spreadsheet or move it to a specific Drive folder, use the Google Drive SDK.

如果您还想共享电子表格或将其移至特定的云端硬盘文件夹,请使用Google云端硬盘SDK。

#1


0  

do not use the Documents List API which is deprecated.

不要使用不推荐使用的Documents List API。

All the actions you list (create a spreadsheet and fill it in) can be realized with the GData Spreadsheets API. The documentation contains good examples in Java.

您列出的所有操作(创建电子表格并填写)都可以使用GData Spreadsheets API实现。该文档包含Java中的好例子。

If you also want to share the spreadsheet or move it to a specific Drive folder, use the Google Drive SDK.

如果您还想共享电子表格或将其移至特定的云端硬盘文件夹,请使用Google云端硬盘SDK。