샘플
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 섹션에서는 의도한 Google Slides 작업을 Google Slides API 요청으로 변환하는 방법을 보여주는 샘플 애플리케이션과 '레시피' 예시를 제공합니다.
Codelab

Slides Codelab에서는 Google Slides API를 가장 일반적인 소프트웨어 라이선스 분석을 위한 맞춤 프레젠테이션 도구로 사용하는 방법을 알아봅니다.
BigQuery를 사용하여 GitHub의 모든 오픈소스 코드를 쿼리하고 Slides API를 사용하여 결과를 발표할 슬라이드 자료를 만드는 방법을 알아봅니다.
샘플 애플리케이션

Markdown to Slides 명령줄 도구를 사용하면 마크다운 파일에서 슬라이드 자료를 생성할 수 있습니다.
이를 사용하여 Slides API를 탐색하거나 저장소를 포크하고 코드를 수정하여 JavaScript 애플리케이션에 Slides 출력을 제공할 수 있습니다.
레시피
이 섹션에 나열된 예에서는 Slides의 일반적인 작업을 Slides API 요청으로 표현하는 방법을 보여줍니다.
이러한 예는 언어에 구애받지 않는 HTTP 요청으로 표시됩니다. Google API 클라이언트 라이브러리를 사용하여 특정 언어로 Slides API 요청 프로토콜을 구현하는 방법을 알아보려면 다음 가이드를 참고하세요.
이 섹션의 레시피는 다음 카테고리로 나뉩니다.
- 기본 읽기: 프레젠테이션에서 정보를 읽는 일반적인 방법을 보여주는 레시피입니다.
- 기본 쓰기: 프레젠테이션에 쓰는 일반적인 방법을 보여주는 레시피입니다.
- 요소 작업: 일반적인 페이지 요소 생성 및 수정 작업을 보여주는 레시피입니다.
- 프레젠테이션 작업: 프레젠테이션을 만들고 조작하는 방법을 보여주는 레시피입니다.
- 슬라이드 작업: 프레젠테이션에서 슬라이드를 만들고, 이동하고, 삭제하는 방법을 보여주는 레시피입니다.
- 표 작업: 슬라이드 내에서 표를 만들고 수정하는 방법을 보여주는 레시피입니다.
- 변환 작업: 슬라이드 내에서 요소의 크기와 위치를 변경하는 방법을 보여주는 레시피입니다.
Slides API를 사용하면 주어진 작업을 완료하는 방법이 여러 가지인 경우가 많습니다. 가능한 경우 일괄 메서드 presentations.batchUpdate
를 사용하여 여러 업데이트 요청을 단일 메서드 호출로 번들링합니다.
이렇게 하면 클라이언트 HTTP 오버헤드가 줄어들고, 쿼리 수가 줄어들며, 프레젠테이션의 수정사항 수가 최소화되고, 모든 변경사항이 원자적으로 적용됩니다.
성능을 더욱 개선하려면 프레젠테이션, 페이지, 페이지 요소를 읽고 업데이트할 때 필드 마스크를 사용하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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."]]