Google 弃用 Sheets v3 会影响 Apps 脚本中的调用吗?

Does Google Sheets v3 Deprecation impact calls in AppsScript?

我最近了解到 Google Sheets API v3 正在被弃用,取而代之的是 v4,我想知道它是否对 App 脚本有任何影响?

在我的 AppScripts 中,我主要使用 SpreadsheetApp (https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app),API 的变化似乎对此没有任何影响,但我必须确定,了解我是否需要迁移这些脚本。

提前感谢您的任何见解

正如您在 Apps Script reference 上看到的:

G Suite services are services that let you access the data of G Suite products such as Drive, Gmail, Calendar, Docs, Sheets, and others. These services are separate from APIs created for those products; in general, G Suite services are easier to use than G Suite APIs, but are optimized for only the most common use cases.

这些基本上是 DriveApp、SpreadsheetApp、DocumentApp 类 等。它们是 API 的高级抽象,并且它们不太可能更改(尽管可能会发生一些小的更改)。

Advanced Google services provide the means to use Google APIs (including but not limited to the G Suite product APIs) within Apps Script. Advanced Google services are really just thin wrappers around those APIs, and are not an API themselves. For more details, see Advanced Google services.

其中包括云端硬盘、文档、日历 类。与 "G suite services" 相比,它们是较低级别的抽象层,因此更容易发生变化。

由于您在本例中使用的是高级抽象,因此您可能不需要太担心。

您可能还想访问以下链接: