简体   繁体   English

我可以让用户从静态网站的 *his* 的谷歌电子表格中写入/读取数据吗?

[英]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.

相关问题 我可以将 csv 从 url 链接到谷歌电子表格吗? - Could i link csv from url into google spreadsheet? 从 Google 电子表格中获取数据 - Fetch data from Google Spreadsheet 在 Google App Script 中获取错误以从 JSON api Webservice 获取数据并将它们写入谷歌电子表格 - Getting error in Google App Script to fetch data from JSON api Webservice and write them to google spreadsheet 无法通过Dialogflow从Google上的操作写入Google Spreadsheet - Unable to write to Google Spreadsheet from actions on google with dialogflow 如何在不需要用户登录的情况下使用网站上 Google 表格中的数据? - How can I use data from a Google Sheet on a website without needing the user to be logged in? 将数据从 API 发送到谷歌电子表格 - Send data from an API to google spreadsheet 从 ChargeBee 提取订阅数据到谷歌电子表格 - Extracting subscription data from ChargeBee to google spreadsheet 如何从谷歌电子表格中获取特定数据? - How to get specific data from google spreadsheet? 使用gspread无需登录即可读取Google云端硬盘电子表格 - Using gspread to read from a Google Drive Spreadsheet without logging in 如何使用其API迭代解析Google电子表格中每个“子工作表”中的数据? - How do I iteratively parse data from each “sub-sheet” in a Google spreadsheet using their API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM