简体   繁体   English

Android更新在线电子表格

[英]Android update online spreadsheet

I'm writing an app that will need to upload some basic data on an online spreadsheet. 我正在编写一个需要在在线电子表格上上传一些基本数据的应用程序。 The app won't have to read or delete any data, it will just have to insert some data line by line. 该应用程序不必读取或删除任何数据,而只需逐行插入一些数据。 For example something like that: 例如这样的事情:

.insertNewRow("Joe", "25", "Programmer");

What's the simplest way to do that? 最简单的方法是什么? Google spreadsheets? Google电子表格? Microsoft Excel Online? Microsoft Excel Online? Firebase database? Firebase数据库?

I've read the google sheets api but there seems to be too much work involded with getting an OAuth authentication and more. 我已经阅读过Google Sheets api,但是似乎有太多工作涉及获得OAuth身份验证等等。

Is there a simple way to insert some data on the spreadsheet just by requiring the url of the sheet and the email address/password of the user? 是否有一种简单的方法,仅需要工作表的URL和用户的电子邮件地址/密码,即可在电子表格中插入一些数据?

Actually I figured it out. 其实我知道了。

The simplest and easiest solution is to create a Google Form, instead of a spreadsheet and then send the data to the form using Http Post requests. 最简单,最简单的解决方案是创建Google表单(而不是电子表格),然后使用Http Post请求将数据发送到表单。

The form can be viewed as a spreadsheet online which you can also export to xlsx, csv, etc. 该表格可以在线查看为电子表格,也可以导出到xlsx,csv等。

So that way, you can actually send data to an online spreadsheet without requiring any authentication. 这样,您实际上可以将数据发送到在线电子表格,而无需任何身份验证。

There's a nice tutorial here: http://codesmith.in/post-data-google-drive-sheet-through-mobile-app/ 这里有一个很好的教程: http : //codesmith.in/post-data-google-drive-sheet-through-mobile-app/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM