问题描述
我想创建一个使用 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 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!