Adding text and shapes with the Google Slides API
Blog post from Google Cloud
In February 2017, Wesley Chun from the G Suite team introduced a new tutorial for the Google Slides API, highlighting its potential for automating presentation tasks through programmatic interactions. Since the API's launch, developers have been able to manipulate text and images within slides, generate presentations from spreadsheet data, and format text using JSON payloads sent to the batchUpdate() method. The latest tutorial focuses on adding text and shapes to slides, emphasizing the importance of creating custom object IDs to optimize API requests and reduce calls. The process involves using insertText requests for text addition, while adding shapes necessitates a more complex JSON structure due to the mathematical calculations required for proper rendering. The tutorial provides practical advice and references additional resources for tasks like text formatting, search-and-replace functions, and integrating data into slides, aiming to assist developers in building applications that streamline the creation of presentations.