Published on November 9, 2016 by Google

For the first time, Google Slides has an API, and we’re going to show you how to use it! In this video, you’ll see how to programmatically generate a slide deck. In particular, we’ll start with a title slide template & company icon in a Google Drive folder. The template contains placeholders for a presentation name and an image, like a corporate logo. We’ll then walk through a simple script copying the template & replacing the placeholders w/the presentation name & product icon. This will be enough knowledge transfer so that you can start generating your OWN presentations using the Google Slides API!

Overview of the Google Slides API: goo.gl/vdnrhw

Common operations and API samples: goo.gl/irJqH5

Slides API reference documentation: goo.gl/XQJRw4

Slides API Python quickstart: goo.gl/qcQqAq

Deeper dive code review of script used in this DevByte: goo.gl/pi912I

Slides API pre-launch announcement at Google I/O 2016: goo.gl/P3K8Ze

Slides API launch announcement (Nov 2016): goo.gl/LQY4su

Slides API developers launch announcement (Nov 2016): goo.gl/vdbc0L

Slides API documentation home page: goo.gl/OBB1f8

“Setting up new Google API projects” DevByte video: goo.gl/grggHA

Google Developers Console: goo.gl/SScK0M

Google APIs Client Libraries: goo.gl/XYcDxm

“Common Python code walkthrough” DevByte video: goo.gl/1KFUif

Launchpad Online developer video series: goo.gl/X0hytP

Watch more videos from The G Suite Dev Show: goo.gl/lmuovb

Subscribe to the Google Developers Channel for new episodes of the G Suite Dev Show: goo.gl/mQyv5L

Leave a Reply

8 Comments on "Replacing text & images with the Google Slides API (The G Suite Dev Show)"

Notify of
avatar

Оскар
Guest
Оскар
28 days 6 hours ago

is this Java?

wesley chun
Guest
wesley chun
28 days 2 hours ago

Nope, as MrFuryGuy mentioned, this is Python. As I mention in the blogpost (goo.gl/o6EFwk), if you don't know Python, then just pretend it's pseudocode. The Java Quickstart sample can be found at developers.google.com/slides/quickstart/java and developers.google.com/slides/quickstart/android for the Android version.

MrFuryGuy
Guest
MrFuryGuy
28 days 5 hours ago

That's Python

Douglas
Guest
Douglas
1 month 2 hours ago

This seems more complicated than easier slideshows ive made. i am not sure why i would use this

wesley chun
Guest
wesley chun
28 days 1 hour ago

Not sure that's true in this case, as all the commands you can execute with the API should be available in the Google Slides user interface on a computer. The point is that you can build any integration beyond what you get from the UI that suits your business needs and not ask nor wait for someone else to do it.

wesley chun
Guest
wesley chun
28 days 2 hours ago

That's the EXACT point… slideshows that you have made — you're doing it by hand. This API allows you to write an app that generates presentations automatically so you don't have to create them manually. In reality (and demo'd in the video), you'll likely craft a template deck, then write code to fill it the customized content.

Larry Kwan
Guest
Larry Kwan
29 days 14 hours ago

Douglas I really dislike the way APIs are increasingly being used to perform tasks the developers couldn't care to make an interface for.

Gabriel Kwiecinski Antunes
Guest
Gabriel Kwiecinski Antunes
1 month 2 hours ago

This is awesome! Thanks guys. Great show.

wpDiscuz