با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Google Apps Script API به شما امکان میدهد پروژههای Apps Script را بهصورت برنامهنویسی ایجاد، اصلاح و استقرار دهید — اقداماتی که در غیر این صورت شما را ملزم به استفاده از ویرایشگر Apps Script میکند. برنامههای شما میتوانند از API برای مدیریت پروژههای اسکریپت، ایجاد و استقرار نسخههای جدید اسکریپت، و نظارت بر اجرای اسکریپت استفاده کنند.
Apps Script API همچنین جایگزین و گسترش Apps Script Execution API می شود. میتوانید از Apps Script API برای اجرای عملکردهای Apps Script از راه دور استفاده کنید، همانطور که میتوانید با Execution API.
نمای کلی API
Apps Script API به چندین منبع تقسیم میشود که هر کدام دارای هدف و مجموعهای از درخواستها هستند که میتوانید انجام دهید. این منابع به شرح زیر است:
projects - نمایشی از یک پروژه اسکریپت. API روش هایی را برای ایجاد، خواندن، نظارت و اصلاح پروژه ها ارائه می دهد.
projects.deployments - نمایشی از استقرار اسکریپت. API روش هایی را برای ایجاد، فهرست، به روز رسانی و حذف استقرار پروژه اسکریپت ارائه می دهد.
projects.versions - نمایشی از نسخه پروژه اسکریپت. API روش هایی را برای ایجاد و خواندن نسخه های پروژه ارائه می دهد.
processes - نمایشی از اجرای یک تابع اسکریپت. API روش هایی را برای فهرست کردن فرآیندهای موجود و جمع آوری اطلاعات در مورد آنها، مانند نوع و وضعیت فعلی، ارائه می دهد.
scripts - نقطه پایانی که روش هایی را برای اجرای از راه دور توابع Apps Script ارائه می دهد.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Google Apps Script API allows programmatic management of Apps Script projects, including creation, modification, and deployment.\u003c/p\u003e\n"],["\u003cp\u003eThis API enables remote execution of Apps Script functions and extends the capabilities of the Apps Script Execution API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the API to manage script projects, deploy versions, and monitor script executions.\u003c/p\u003e\n"],["\u003cp\u003eKey resources within the API include projects, deployments, versions, processes, and scripts for comprehensive control.\u003c/p\u003e\n"],["\u003cp\u003eIt's crucial to enable the API and grant access for third-party app management of your scripts.\u003c/p\u003e\n"]]],[],null,["# Introduction\n\nThe Google Apps Script API lets you programmatically create, modify, and\ndeploy Apps Script projects---actions that otherwise require you to\nuse the Apps Script editor. Your apps can use the API to manage your\nscript projects, create and deploy new script versions, and monitor script\nexecutions.\n| **Warning:** The Apps Script API does not work with [service accounts](https://developers.google.com/identity/protocols/OAuth2ServiceAccount).\n\nThe Apps Script API also replaces and extends the Apps Script Execution API.\nYou can use the Apps Script API to execute Apps Script functions remotely,\njust as you could with the Execution API.\n| **Note:** In order to use this API in your apps, you must [enable it for use](/apps-script/api/how-tos/enable#using_the_apps_script_api_in_your_app). To allow other apps to manage your scripts, you must [grant them access](/apps-script/api/how-tos/enable#granting_third-party_applications_access_to_your_script_projects%22).\n\nOverview of the API\n-------------------\n\nThe Apps Script API is divided into several resources, each with a specific\npurpose and set of requests you can make. These resources are the following:\n\n- [`projects`](/apps-script/api/reference/rest/v1/projects) --- A representation of a script project. The API provides methods to create, read, monitor, and modify projects.\n- [`projects.deployments`](/apps-script/api/reference/rest/v1/projects.deployments) --- A representation of a script deployment. The API provides methods to create, list, update, and delete script project deployments.\n- [`projects.versions`](/apps-script/api/reference/rest/v1/projects.versions) --- A representation of a script project version. The API provides methods to create and read project versions.\n- [`processes`](/apps-script/api/reference/rest/v1/processes) --- A representation of a script function execution. The API provides methods to list existing processes and gather information about them, such as type and current status.\n- [`scripts`](/apps-script/api/reference/rest/v1/scripts) --- The endpoint that provides methods to remotely execute Apps Script functions."]]