如何让匿名用户编辑Google云端硬盘实时文档? [英] How to let anonymous users edit a Google Drive Realtime document?

查看:543
本文介绍了如何让匿名用户编辑Google云端硬盘实时文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个使用 Google Drive Realtime API 的网页,以便用户匿名编辑多个文本字段。由于不止一个用户可能同时访问该页面,因此我想防止其他用户覆盖其他用户的编辑,而不让第一个编辑人员知道他的编辑被覆盖。



但是,从快速入门中,似乎需要使用Google帐户的授权才能开始编辑。是否有可能让arbritrary用户编辑我的实时模型,而无需登录?类似于让公众编辑Google文档电子表格。现在只有psuedo-anonymous模式可供使用。 您可以公开提供文件,也可以向任何具有链接的人提供文件。但是,用户需要使用Google帐户登录才能进行编辑。

它们对文档中的其他用户显示为匿名用户。这是isAnonymous当前使用的地方。


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.

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.

解决方案

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.

They appear as an anonymous user to the other users in the document. This is where isAnonymous is currently used.

这篇关于如何让匿名用户编辑Google云端硬盘实时文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆