ตัวอย่าง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ส่วนนี้มีตัวอย่างและเครื่องมือการพัฒนาที่ใช้ 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
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\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/)."]]