[英]Could I have a user to write/read data to/from a google spreadsheet of *his* from a static website?
I could not store any secret keys since the data would be accessed though a static website.我无法存储任何密钥,因为数据将通过静态网站访问。 (I dont want to use google forms)
(我不想使用谷歌表单)
I understand I need a secret api key if I want anyone to write/read data to/from a google spreadsheet that is mine, but this is not my case.我知道如果我想让任何人向/从我的谷歌电子表格写入/读取数据,我需要一个秘密的 api 密钥,但这不是我的情况。
This for example about a simple "TODO app", where each user would just access their own data, do I still need a key if each user is accessing only their own private spreadsheed?例如,关于一个简单的“TODO 应用程序”,每个用户只访问他们自己的数据,如果每个用户只访问他们自己的私人电子表格,我还需要密钥吗?
This is kind of a broad question so my answer would be a series of recommendations, in that way you will have a better idea of what you have to do to fulfill your goal:这是一个广泛的问题,所以我的回答将是一系列建议,这样你就会更好地了解你必须做什么才能实现你的目标:
1) First of all. 1)首先。 If you haven't heard about Apps Script , I would recommend you to check it, because it integrates easily programming tools for all Google apps.
如果您还没有听说过Apps Script ,我建议您检查一下,因为它集成了适用于所有 Google 应用程序的轻松编程工具。
2) Now knowing what's Apps Script, you could check how to integrate Apps Script code into your Spreadsheet byExtending Google Sheets . 2)现在知道什么是 Apps Script,您可以检查如何通过Extending Google Sheets将 Apps Script 代码集成到您的电子表格中。
3)Spreadsheet Service allows performing several tasks related to your Sheet files. 3)电子表格服务允许执行与您的表格文件相关的多项任务。
4) Knowing about Apps Script and how to handle the Sheets files by coding, the next step will be to check Web Apps , which will help you to create an integrated web app on your Spreadsheet. 4)了解 Apps Script 以及如何通过编码处理表格文件,下一步将是检查Web Apps ,这将帮助您在电子表格上创建集成的网络应用程序。
5) The last thing I recommend you is to see the Class google.script.run (Client-side API) , this class will pass values from your Front-end to your Back-end built on Apps Script. 5)我建议你最后一件事是查看Class google.script.run (Client-side API) ,这个类会将值从你的前端传递到你的基于 Apps Script 的后端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.