ตัวอย่าง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ส่วนนี้จะแสดงชุดแอปพลิเคชันตัวอย่างและตัวอย่าง "สูตร" ที่แสดงวิธีแปลการดำเนินการใน Google สไลด์ที่ต้องการให้เป็นคำขอ Google สไลด์ API
Codelabs

Codelab ของสไลด์
จะสอนวิธีใช้ Google Slides API เป็นเครื่องมืองานนำเสนอที่กำหนดเองสำหรับการ
วิเคราะห์ใบอนุญาตซอฟต์แวร์ที่พบบ่อยที่สุด
คุณจะได้เรียนรู้วิธีค้นหาโค้ดโอเพนซอร์สทั้งหมดใน GitHub โดยใช้ BigQuery และสร้าง
สไลด์โดยใช้ Slides API เพื่อนำเสนอผลลัพธ์
แอปพลิเคชันตัวอย่าง

เครื่องมือบรรทัดคำสั่ง Markdown to
Slides
ช่วยให้คุณสร้างชุดสไลด์จากไฟล์มาร์กดาวน์ได้
คุณสามารถใช้ข้อมูลนี้เพื่อสำรวจ Slides API หรือแยกที่เก็บและ
แก้ไขโค้ดเพื่อแสดงเอาต์พุตของสไลด์ในแอปพลิเคชัน JavaScript
สูตรอาหาร
ตัวอย่างที่แสดงในส่วนนี้จะสาธิตวิธีแสดงการดำเนินการทั่วไปใน
สไลด์เป็นคำขอ Slides API
ตัวอย่างเหล่านี้จะแสดงเป็นคำขอ HTTP เพื่อให้เป็นกลางทางภาษา หากต้องการดูวิธี
ใช้โปรโตคอลคำขอของ Slides API ในภาษาที่เฉพาะเจาะจง
โดยใช้ไลบรารีของไคลเอ็นต์ Google API โปรดดูคำแนะนำต่อไปนี้
สูตรอาหารในส่วนนี้แบ่งออกเป็นหมวดหมู่ต่อไปนี้
โดยปกติแล้วการทำงานที่กำหนดด้วย
Slides API มักทำได้มากกว่า 1 วิธี ใช้วิธีการแบบกลุ่ม
presentations.batchUpdate
เมื่อเป็นไปได้เพื่อรวมคำขออัปเดตหลายรายการไว้ในการเรียกใช้เมธอดเดียว
ซึ่งจะช่วยลดค่าใช้จ่าย HTTP ของไคลเอ็นต์ ลดจำนวนการค้นหา ลดจำนวนการแก้ไขในงานนำเสนอ และใช้การเปลี่ยนแปลงทั้งหมดพร้อมกัน
หากต้องการปรับปรุงประสิทธิภาพเพิ่มเติม ให้ใช้ฟิลด์
มาสก์เมื่ออ่านและอัปเดตงานนำเสนอ
หน้าเว็บ และองค์ประกอบของหน้าเว็บ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[],[],null,["# Samples\n\nThis section presents a set of sample applications and \"recipe\" examples that\ndemonstrate how to translate an intended Google Slides action into an\nGoogle Slides API request.\n\nCodelabs\n--------\n\nThe [Slides\ncodelab](https://codelabs.developers.google.com/codelabs/slides-api)\nteaches you how to use Google Slides API as a custom presentation tool for an\nanalysis of the most common software licenses.\n\nYou'll learn how to query all open source code on GitHub using [BigQuery](https://cloud.google.com/bigquery) and create a\nslide deck using Slides API to present your results.\n\nSample applications\n-------------------\n\nThe [Markdown to\nSlides](https://github.com/googleworkspace/md2googleslides)\ncommand-line tool lets you generate slide decks from markdown files.\n\nYou can use this to explore the Slides API, or fork the repository and\nmodify the code to provide Slides output to your JavaScript\napplication.\n\nRecipes\n-------\n\nThe examples listed in this section demonstrate how to express common actions in\nSlides as Slides API requests.\n\nThese examples are presented as HTTP requests to be language neutral. To learn\nhow to implement Slides API request protocols in a specific language\nusing Google API client libraries, see the following guides:\n\n- [Create a slide](/workspace/slides/api/guides/create-slide)\n- [Add shapes and text](/workspace/slides/api/guides/add-shape)\n- [Merge data into a presentation](/workspace/slides/api/guides/merge)\n- [Add charts to a slide](/workspace/slides/api/guides/add-chart)\n- [Edit and style text](/workspace/slides/api/guides/styling)\n\nRecipes in this section are divided into the following categories:\n\n- [Basic reading](/workspace/slides/api/samples/reading)---Recipes that show common ways of reading information from a presentation.\n- [Basic writing](/workspace/slides/api/samples/writing)---Recipes that show common ways of writing to a presentation.\n- [Element operations](/workspace/slides/api/samples/elements)---Recipes that show common page element creation and editing tasks.\n- [Presentation operations](/workspace/slides/api/samples/presentation)---Recipes that show how to create and manipulate a presentation.\n- [Slide operations](/workspace/slides/api/samples/slides)---Recipes that show how to create, move, and delete slides in a presentation.\n- [Table operations](/workspace/slides/api/samples/tables)---Recipes that show how to create and edit tables within a slide.\n- [Transform operations](/workspace/slides/api/samples/transform)---Recipes that show how to alter the size and positioning of elements within a slide.\n\nThere's often more than one way to complete a given task with the\nSlides API. Use the batch method\n[`presentations.batchUpdate`](/workspace/slides/api/reference/rest/v1/presentations/batchUpdate)\nwherever possible to bundle multiple update requests into a single method call.\nThis reduces client HTTP overhead, reduces the number of queries, minimizes the\nnumber of revisions on the presentation, and applies all the changes atomically.\n\nTo further improve performance, use [field\nmasks](/workspace/slides/api/guides/field-masks) when reading and updating presentations,\npages, and page elements."]]