javascript - 谷歌应用程序脚本中的 ReferenceError : "Drive" is not defined.(第 16 行,文件 "Code")

标签 javascript google-apps-script google-drive-realtime-api

当我尝试使用 Google 驱动器引用时,它总是显示 ReferenceError:“驱动器”未定义。 (第 16 行,文件“代码”)。

最佳答案

我已经通过以下方式解决了这个错误:

资源 -> 高级 Google 服务 -> 启用 Drive Api

enter image description here

注意:您需要在 Google 控制台中启用 Drive Api

关于javascript - 谷歌应用程序脚本中的 ReferenceError : "Drive" is not defined.(第 16 行,文件 "Code"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43838960/

相关文章:

javascript - 为什么 jQuery 中的拖动功能没有触发

google-drive-api - 无法在 Google API 的 Drive UI 集成中保存任何内容

google-drive-api - 从 Google Drive API - RealTime API 启用 'Open FIle"

python - 未授予 Google Drive API 读取权限

google-apps-script - 如何在 GMAIL 插件中获取当前用户的电子邮件 ID

javascript - 如何在 MongoDB 中按引用字段查询?

javascript - 本地存储中的数据 >100Mb

php - 如何发布下拉列表中的所有选项

google-apps-script - 复制以编程方式创建的重复事件?

javascript - 如何在 Google Apps 脚本中忽略自动回复指定的电子邮件