نمونه ها
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
این بخش نمونه ها و ابزارهای توسعه ای را ارائه می دهد که از Apps Script API استفاده می کنند.
دستور العمل ها
مثالهای «دستور» فهرستشده در این بخش نشان میدهند که چگونه میتوان اقدامات رایج Apps Script را بهعنوان درخواستهای Apps Script API بیان کرد.
این مثالها در پروتکلهای درخواست Apps Script API به زبانی خاص با استفاده از کتابخانههای سرویس گیرنده Google API ارائه میشوند، برای مثالها به راهنمای اجرای یک تابع مراجعه کنید.
دستور غذاها در این بخش به دسته های زیر تقسیم می شوند:
- اجرای توابع اسکریپت برنامه ها - دستور العمل هایی که نحوه فراخوانی از راه دور عملکردهای برنامه اسکریپت از برنامه های دیگر را نشان می دهد.
- مدیریت پروژه - دستور العمل هایی که اقدامات اساسی پروژه مانند ایجاد پروژه های جدید، بازیابی فایل های اسکریپت و به روز رسانی محتوای پروژه را نشان می دهد.
منابع توسعه
ابزار خط فرمان clasp
برای Apps Script به شما امکان می دهد پروژه های Apps Script را از دستگاه محلی خود توسعه و نگهداری کنید. clasp
یک پروژه منبع باز Node.js است که از Apps Script API برای مدیریت پروژه استفاده می کند. می توانید ببینید که چگونه API در مخزن clasp
GitHub فراخوانی می شود.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis section offers samples and development tools utilizing the Apps Script API, including recipes demonstrating common Apps Script actions as API requests.\u003c/p\u003e\n"],["\u003cp\u003eRecipes are categorized into executing Apps Script functions remotely and managing projects (creating, retrieving, updating).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eclasp\u003c/code\u003e command-line tool enables local development and maintenance of Apps Script projects using the Apps Script API.\u003c/p\u003e\n"]]],[],null,["# Samples\n\nThis section provides samples and development tools that use the Apps Script API.\n\nRecipes\n-------\n\nThe 'recipe' examples listed in this section demonstrate how to express common\nApps Script actions as Apps Script API requests.\n\nThese examples are presented in Apps Script API request protocols in a\nspecific language using Google API client libraries, see the\n[Executing an function](/apps-script/api/how-tos/execute) guide\nfor examples.\n\nRecipes in this section are divided into the following categories:\n\n- [Executing Apps Script Functions](/apps-script/api/samples/execute) --- Recipes that show how to remotely call Apps Script functions from other apps.\n- [Project Management](/apps-script/api/samples/manage) --- Recipes that show basic project actions such as creating new projects, retrieving script files, and updating project content.\n\nDevelopment resources\n---------------------\n\nThe [`clasp` command-line tool](/apps-script/guides/clasp) for Apps Script lets\nyou develop and maintain Apps Script projects from your local machine. `clasp`\nis a Node.js open-source project that uses Apps Script API for project\nmanagement; you can see how the API is called in the\n[`clasp` GitHub repository](https://github.com/google/clasp/)."]]