How to let anonymous users edit a Google Drive Realtime document?(如何让匿名用户编辑 Google Drive Realtime 文档?)
问题描述
我想创建一个使用 Google Drive Realtime API 的网页,允许用户匿名编辑多个文本字段.因为可能有多个用户同时访问该页面,所以我想防止某人的编辑被另一个用户覆盖,而第一个编辑者不知道他的编辑被覆盖了.
I want to create a web page that uses Google Drive Realtime API that allows users to anonymously edit several text fields. Because more than one user may be accessing the page simultaneously, I want to prevent someone's edit from being overwritten by another user without the first editor knowing that his edit is overwritten.
但是,从快速入门看来,人们似乎需要使用 Google 帐户进行授权开始编辑.是否可以让任意用户编辑我的实时模型,而无需登录?类似于让公众编辑 Google Docs 电子表格.
However, from the quick start, it seems that authorization using Google Account is needed for people to start editing. Is it possible to let arbritrary user edit my realtime model, without the need of logging in? Something similar to letting a Google Docs Spreadsheet be edited by the public.
推荐答案
目前只有伪匿名模式可用.您可以将文件公开发布,或提供给任何有链接的人.但是,用户需要使用 Google 帐户登录才能进行编辑.
Right now only psuedo-anonymous mode is available. You can make files available publicly, or to anyone with a link. However, the user will need to log in with a Google account in order to edit.
对于文档中的其他用户,他们显示为匿名用户.这是当前使用 isAnonymous 的地方.
They appear as an anonymous user to the other users in the document. This is where isAnonymous is currently used.
这篇关于如何让匿名用户编辑 Google Drive Realtime 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何让匿名用户编辑 Google Drive Realtime 文档?


- 如何显示带有换行符的文本标签? 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01