将内容发送到没有 Authorization/Authentication 的新 Google 文档

Send content to new Google Doc without Authorization/Authentication

有没有办法将 HTML 内容发送到新的 Google 文档而无需 authorization/authentication 的凭据?

在我的 ASP.NET 应用中,用户使用 tinyMCE 文本编辑器创建格式化的 HTML 内容。我想允许用户通过 JavaScript 函数将该内容发送到新的 Google 文档。

在不知道用户的 Google 驱动器凭据的情况下这可能吗?

Is this possible without knowing the user's Google Drive credentials?

答案:

很遗憾,这不可能。

更多信息:

创建 Google 文档需要您使用 Google 文档 API 的 documents.create 端点。 As you can see from the documentation page,它需要以下 OAuth 范围之一:

使用这些范围需要用户使用他们的 Google 帐户登录,因此在不知道用户凭据的情况下调用此方法是不可能的。

参考文献: