參考資料總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本節提供的參考文件說明瞭各種 Apps Script 服務和專案資源。
Apps Script 服務
Apps Script 服務可讓指令碼存取 Google 和外部系統的資料。這些服務內建於 Apps Script 環境,因此您不必自行匯入或實作授權控制項。服務會以全域物件表示,並具有相關聯的方法,類似於 JavaScript 物件 (例如 Math
)。
應用程式指令碼服務包括:
進階服務
部分 Google 服務會以進階服務的形式提供。進階服務是 Apps Script 服務,可讓您存取 Google 產品 API,包括但不限於 Google Workspace 產品 API。進階 Google 服務基本上是 API 的精簡包裝函式,本身並非 API。詳情請參閱「進階 Google 服務」。
指令碼專案資源
指令碼專案資源會提供 Apps Script 專案的相關資訊,協助專案順利執行。專案資源包括資訊清單設定、自動化觸發條件和配額等資訊。
Google Workspace 外掛程式資源
只有在建構 Google Workspace 外掛程式時,才需要參考外掛程式資源。
Apps Script API
如要使用 Apps Script API 透過程式建立、修改或部署 Apps Script 專案,請使用這些資源。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間: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)."]]