Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Bagian ini menyajikan serangkaian contoh aplikasi dan contoh "resep" yang menunjukkan cara menerjemahkan tindakan Google Slide yang dimaksudkan menjadi permintaan Google Slides API.
Codelab
Codelab Slide
mengajari Anda cara menggunakan Google Slides API sebagai alat presentasi kustom untuk
analisis lisensi software yang paling umum.
Anda akan mempelajari cara membuat kueri semua kode open source di GitHub menggunakan BigQuery dan membuat presentasi slide menggunakan Slides API untuk mempresentasikan hasil Anda.
Aplikasi contoh
Alat command line Markdown to
Slides memungkinkan Anda membuat presentasi slide dari file markdown.
Anda dapat menggunakan ini untuk menjelajahi Slides API, atau membuat fork repositori dan mengubah kode untuk memberikan output Slides ke aplikasi JavaScript Anda.
Resep
Contoh yang tercantum di bagian ini menunjukkan cara menyatakan tindakan umum di
Slide sebagai permintaan Slides API.
Contoh ini ditampilkan sebagai permintaan HTTP agar netral terhadap bahasa. Untuk mempelajari cara menerapkan protokol permintaan Slides API dalam bahasa tertentu menggunakan library klien Google API, lihat panduan berikut:
Resep di bagian ini dibagi menjadi kategori berikut:
Membaca dasar—Resep yang menunjukkan cara umum membaca informasi dari presentasi.
Penulisan dasar—Resep yang menunjukkan cara umum menulis ke presentasi.
Operasi elemen—Resep yang menunjukkan
tugas umum pembuatan dan pengeditan elemen halaman.
Operasi presentasi—Resep
yang menunjukkan cara membuat dan memanipulasi presentasi.
Operasi slide—Resep yang menunjukkan cara membuat, memindahkan, dan menghapus slide dalam presentasi.
Operasi tabel—Resep yang menunjukkan cara membuat dan mengedit tabel dalam slide.
Operasi transformasi—Resep yang menunjukkan cara mengubah ukuran dan pemosisian elemen dalam slide.
Sering kali ada lebih dari satu cara untuk menyelesaikan tugas tertentu dengan
Slides API. Gunakan metode batch
presentations.batchUpdate
jika memungkinkan untuk menggabungkan beberapa permintaan update ke dalam satu panggilan metode.
Hal ini mengurangi overhead HTTP klien, mengurangi jumlah kueri, meminimalkan
jumlah revisi pada presentasi, dan menerapkan semua perubahan secara atomik.
Untuk lebih meningkatkan performa, gunakan mask
kolom saat membaca dan memperbarui presentasi,
halaman, dan elemen halaman.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]