Google 幻灯片 API 视频库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
以下视频介绍了一些概念,可帮助您将 Google 幻灯片 API 用于您的应用。每个视频通常都会介绍一个简短的示例应用,以便您快速上手试用特定 API 功能。
替换文字和图片
在创建可用于生成数百个自定义幻灯片的幻灯片模板时,学习如何替换文本和图片占位符是一项关键技能。
(视频时长:5:18)
博文“Google 幻灯片 API 简介”中也介绍了此功能。
添加文字和形状
对于使用 Google 幻灯片 API 的开发者,掌握向演示文稿添加文本的能力是一项关键技能。此视频介绍了如何执行此操作,以及如何向幻灯片添加形状。为方便起见,观看者还将学习如何在形状中添加文本。
(播放时长:6:32)
博文 “使用 Google 幻灯片 API 添加文字和形状”也介绍了此功能。
设置文本格式和样式
演示文稿通常以图片为主,文字较少,因此您必须提供的文字会显得更重要。本视频介绍了如何更改演示文稿中文本的样式和格式。
(片长:7:19)
博文 “使用 Google Slides API 设置文本格式”也介绍了此功能。
根据电子表格数据生成 Google 幻灯片
Slides API 的一个用例是让电子表格中的数据更具视觉吸引力。本视频介绍了如何将图表从 Google 表格导入到演示文稿,以及如何将单元格数据从 Google 表格复制到 Google 幻灯片表格。
(片长:7:40)
博文“根据电子表格数据生成幻灯片”也介绍了此功能。
通过图片生成 Google 幻灯片
Apps 脚本中的 Google 幻灯片服务是 Google 幻灯片 (REST) API 的替代方案。在许多情况下,它可能更适合您的项目,可提供对 Google 幻灯片的更高级别的程序化访问权限。在不到 5 分钟的时间里,我们将向您展示如何使用 Apps Script 的自定义 JavaScript 环境构建一个简短的示例,以便根据一组图片创建幻灯片。熟悉 Apps Script 后,您可以充分发挥想象力,尽情探索 Apps Script 的用途!(注意:如有需要,您还可以通过 Google 幻灯片高级服务从 Apps 脚本访问 Google 幻灯片 API。)
(片长:4:49)
博文“根据图片生成 Google 幻灯片”也介绍了此功能。
使用 Google 幻灯片插件制作进度条
Google 幻灯片没有进度条。这对演讲者和观众来说不是很实用的功能吗?在本视频中,开发者将学习如何使用 SlidesService 创建插件,以实现简单的进度条。借助此插件,用户可以在演示文稿中启用或隐藏进度条。您可以在文档中找到此插件的代码和完整说明,以快速入门示例的形式提供。
(视频时长:4:12)
“使用幻灯片插件制作进度条”一文中也介绍了此功能。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Google Slides API Video Library\n\nThe following videos explain concepts that help you to use the Google Slides API\nfor your applications. Each video generally walks through a short sample app to\ngive you a jump start in trying specific API features.\n\nReplacing text \\& images\n------------------------\n\nWhen creating a slide template from which you can generate hundreds of custom\ndecks, learning how to replace text \\& image placeholders is a key skill.\n\n(Running time: 5:18)\n\nThis feature is also described in the blog post [\"Introducing the Google\nSlides API\"](https://cloud.google.com/blog/products/application-development/introducing-google-slides-api).\n\nAdding text \\& shapes\n---------------------\n\nOne of the key skills for developers using the Slides API is the ability to add\ntext to presentations. This video shows you how to do that as well as how to add\nshapes to slides. For completeness, viewers will also learn how to add text\n*into* shapes.\n\n(Running time: 6:32)\n\nThis feature is also described in the blog post [\"Adding text and shapes\nwith the Google Slides API\"](https://developers.googleblog.com/2017/02/adding-text-and-shapes-with-google.html).\n\nFormatting \\& styling text\n--------------------------\n\nPresentations are generally about images and having less text, making any text\nyou *do* have more important. This video shows you how to change the styling and\nformatting of text in presentations.\n\n(Running time: 7:19)\n\nThis feature is also described in the blog post [\"Formatting text with\nthe Google Slides API\"](https://developers.googleblog.com/2016/12/formatting-text-with-the-google-slides-api.html).\n\nGenerating Google Slides from spreadsheet data\n----------------------------------------------\n\nOne use case of the Slides API is to make data in spreadsheets more visually\nappealing. This video shows you how to import charts from a Sheet into a\npresentation, as well as how to copy cell data from a Sheet into a Slides table.\n\n(Running time: 7:40)\n\nThis feature is also described in the blog post [\"Generating slides from\nspreadsheet data\"](https://developers.googleblog.com/2016/11/generating-slides-from-spreadsheet-data.html).\n\nGenerating Google Slides from images\n------------------------------------\n\nThe [Slides Service](/apps-script/guides/slides) in Apps Script is an\nalternative to the Slides (REST) API. In many cases, it may be a better fit for\nyour project, providing a higher-level of programmatic access to Google Slides.\nIn less than 5 minutes, we show you how to use Apps Script's customized\nJavaScript environment to build a short example that creates slide shows from a\nset of images. Once you become familiar with Apps Script, let your imagination\nrun wild with what you can do with it! (NOTE: If desired, you can also access\nthe Slides API from Apps Script via the [Slides Advanced\nService](/apps-script/advanced/slides).)\n\n(Running time: 4:49)\n\nThis feature is also described in the blog post\n[\"Generating Google Slides from images\"](https://workspace.google.com/blog/developers-practitioners/generating-google-slides-from-images).\n\nMaking progress (bars) with Slides add-ons\n------------------------------------------\n\nGoogle Slides doesn't have progress bars. Wouldn't this be a useful feature for\nboth presenters as well as audiences? In this video, developers learn how to\nimplement simple progress bars by using the [Slides\nService](/apps-script/guides/slides) to create an [add-on](/apps-script/add-ons).\nWith this add-on, users can enable or hide progress bars in their presentations.\nThe code and a full description of this add-on can be found in the documentation\nas a [Quickstart example](/apps-script/guides/slides/samples/progress-bar).\n\n(Running time: 4:12)\n\nThis feature is also described in the blog post\n[\"Making progress (bars) with Slides add-ons\"](https://developers.googleblog.com/en/making-progress-bars-with-slides-add-ons/)."]]