访问网站服务器端的 Google 个驱动器文件

Accessing Google Drive Files On The Server Side Of A Website

所以我正在制作一个网站。我需要将表单提交到服务器进行处理。这是处理登录信息所必需的。此服务器端脚本需要访问存储在我的 Google 驱动器上的纯文本文件,以确认用户输入是否有效。我知道如何访问 Google 驱动器上的文件的唯一方法是通过 Google Apps 脚本。

有没有一种方法可以在 Google Apps 脚本中处理从其他网站使用 HTML 或 JavaScript 提交的服务器端表单?有没有办法将 PHP 与 Google Apps 脚本一起使用? 有没有其他更有效的方法直接从我的网站访问和写入我的 Google 驱动器上的文件?

您可以向 Apps 脚本发出 HTTP 请求并获得响应。看看 Content Service. Google also has a PHP Client API that you can use. You would need to use the Drive Service.