Apps 脚本服务提供了多种方式,可让您的脚本访问 Google 和外部系统中的数据。这些服务内置于 Apps Script 环境中,因此您无需自行导入这些服务或实现授权控制。服务表示为具有关联方法的全局对象,类似于 Math 等 JavaScript 对象。
Apps 脚本服务包括:
Google 服务是指可让您访问 Google Workspace 应用(例如云端硬盘、Gmail 和表格)以及 Google 地图和谷歌翻译等其他 Google 应用中的数据的服务。
实用程序服务是指与特定 Google 产品无关的服务。借助这些函数,您可以执行日志信息、创建 HTML、压缩数据等操作。
高级服务
某些 Google 服务以高级服务的形式提供。高级服务是一种 Apps 脚本服务,可让您访问 Google 产品 API,包括但不限于 Google Workspace 产品 API。高级 Google 服务基本上是 API 的轻量级封装容器,而非 API 本身。如需了解详情,请参阅高级 Google 服务。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-12-21。"],[[["Apps Script offers built-in services enabling interaction with Google and external systems, including Google Workspace apps and utilities for tasks like logging and HTML creation."],["Advanced Google services provide access to Google product APIs, including those for Google Workspace products, acting as simplified wrappers for these APIs."],["Apps Script projects utilize resources like manifest configurations, triggers, and quotas to ensure proper functionality."],["Google Workspace Add-on resources are specifically for developing add-ons, while the Apps Script API enables programmatic management of Apps Script projects."]]],[]]