参考概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本部分提供的参考文档介绍了各种 Apps 脚本服务和项目资源。
Apps 脚本服务
Apps 脚本服务可让脚本访问 Google 和外部系统上的数据。这些服务内置于 Apps 脚本环境中,因此您无需自行导入这些服务或实现授权控制。服务表示为具有关联方法的全局对象,类似于 Math
等 JavaScript 对象。
Apps 脚本服务包括:
高级服务
部分 Google 服务以高级服务的形式提供。高级服务是一种 Apps 脚本服务,可让您访问 Google 产品 API,包括但不限于 Google Workspace 产品 API。
高级 Google 服务基本上是 API 的一个精简封装容器,本身并不是 API。如需了解详情,请参阅高级 Google 服务。
脚本项目资源
脚本项目资源提供有关 Apps 脚本项目的信息,以帮助项目成功运行。项目资源包括有关清单配置、自动化触发器和配额的信息。
Google Workspace 插件资源
如果您要构建 Google Workspace 加购项,才需要参考加购项资源。
Apps Script API
如果您想使用 Apps Script API 以编程方式创建、修改或部署 Apps 脚本项目,请使用以下资源。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eApps 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.\u003c/p\u003e\n"],["\u003cp\u003eAdvanced Google services provide access to Google product APIs, including those for Google Workspace products, acting as simplified wrappers for these APIs.\u003c/p\u003e\n"],["\u003cp\u003eApps Script projects utilize resources like manifest configurations, triggers, and quotas to ensure proper functionality.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Workspace Add-on resources are specifically for developing add-ons, while the Apps Script API enables programmatic management of Apps Script projects.\u003c/p\u003e\n"]]],[],null,["# Reference overview\n\nThe reference documentation provided in this section describes the various\nApps Script services and project resources.\n\nApps Script services\n--------------------\n\nApps Script services provide ways for your script to access data\non\nGoogle and external systems. These services are built into the\nApps Script\nenvironment so you don't have to import them or implement authorization\ncontrols yourself. Services are expressed as global objects with associated\nmethods, similar to JavaScript objects such as `Math`.\n\nApps Script services include:\n\n- **Google services** are services that let\n you access the data of Google Workspace\n apps, such as Drive, Gmail, and Sheets, and other Google apps such as Maps and\n Translate.\n\n- **Utility services** are services that aren't connected to a\n particular Google product. They let you do\n things like log information, create HTML, compress data, and more.\n\n### Advanced services\n\nSome Google services are offered as an *advanced service* . An advanced service\nis an Apps Script service that lets you access Google product\nAPIs, including\nbut not limited to the Google Workspace product APIs.\nAn advanced Google service is basically a thin wrapper around an API, and isn't\nan API itself. For more details, see [Advanced Google\nservices](/apps-script/guides/services/advanced).\n\nScript project resources\n------------------------\n\nScript project resources provide information about your\nApps Script\nproject to help it run successfully. Project resources include information about\nmanifest configuration, automation triggers, and quotas.\n\nGoogle Workspace add-on resources\n---------------------------------\n\nYou only need to refer to add-on resources if you're building a\n[Google Workspace add-on](/workspace/add-ons/concepts/types#google-workspace-add-ons).\n\nApps Script API\n---------------\n\nUse these resources if you want to programmatically create, modify, or deploy\nApps Script projects using the [Apps Script\nAPI](/apps-script/api/concepts)."]]