google-slides-api

Google Slides API - How way change theme via API

核能气质少年 提交于 2021-02-20 02:52:16
问题 (Sorry for my english) I have a problem when using Google Slides API. How can I choose a theme when create new presentation with Google Slides API? Thanks. 1. create a presentation function createPresentation($title) { $presentation = new Google_Service_Slides_Presentation(array( 'title' => $title )); $presentation = $this->slidesService->presentations->create($presentation); $presentationLastId = $presentation->presentationId; return $presentationLastId; } 2. append a slide protected

Google Slides API - How way change theme via API

丶灬走出姿态 提交于 2021-02-20 02:52:01
问题 (Sorry for my english) I have a problem when using Google Slides API. How can I choose a theme when create new presentation with Google Slides API? Thanks. 1. create a presentation function createPresentation($title) { $presentation = new Google_Service_Slides_Presentation(array( 'title' => $title )); $presentation = $this->slidesService->presentations->create($presentation); $presentationLastId = $presentation->presentationId; return $presentationLastId; } 2. append a slide protected

unable to copy a google slide file using google drive api

谁说我不能喝 提交于 2021-02-11 14:16:53
问题 I want to copy an existing template ppt present in my google drive. Then I want to change the placeholder text to some other text. here is what I am trying. from google.oauth2 import service_account import googleapiclient.discovery SCOPES = ( 'https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/presentations', ) SERVICE_ACCOUNT_FILE = 'cred.json' credentials = service_account.Credentials.from_service_account_file( SERVICE_ACCOUNT_FILE, scopes=SCOPES) SLIDES = discovery

Can I use Slides API to add an “Agree to Terms” dialogue before allowing viewer access to a Slides presentation?

浪子不回头ぞ 提交于 2021-01-29 10:16:23
问题 I have a Google Slides presentation that I'd like to gate with a request to agree to "Terms & Conditions" before viewing. (The dialogue box would include an external link to the legal fine print.) I see that with Google App Script adding a dialogue box is possible, but if one can be customized in this manner is unclear to me. Thanks in advance for any help on this. 回答1: You want to open a dialog, when users open the Google Slides. In this case, users are logged in to each Google account. You

How can I embed google slides with the controls bar separated from the iframe view?

馋奶兔 提交于 2021-01-29 09:00:05
问题 I want to embed Google Slides in my web page, but separate the controls bar from the view itself. I know that I can hide them with ?rm=minimal - but I still want to render them, just in a different section in my web page, outside of the embedded iframe. How can I do that? does it require a CSS hack? 来源: https://stackoverflow.com/questions/65506857/how-can-i-embed-google-slides-with-the-controls-bar-separated-from-the-iframe-vi

Google Suite - Apps Script - Download Slides as PNG files via API

人盡茶涼 提交于 2020-11-30 00:17:15
问题 Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the user's desktop). These pictures should be the same specs as if a user clicked File>Download>PNG - the heavy small text requires full projector HD - so I don't believe I can use the "Thumbnail" function which appears limited to 1600 pixels. My code

Google Suite - Apps Script - Download Slides as PNG files via API

别说谁变了你拦得住时间么 提交于 2020-11-30 00:11:30
问题 Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the user's desktop). These pictures should be the same specs as if a user clicked File>Download>PNG - the heavy small text requires full projector HD - so I don't believe I can use the "Thumbnail" function which appears limited to 1600 pixels. My code

Google Suite - Apps Script - Download Slides as PNG files via API

人走茶凉 提交于 2020-11-30 00:09:38
问题 Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the user's desktop). These pictures should be the same specs as if a user clicked File>Download>PNG - the heavy small text requires full projector HD - so I don't believe I can use the "Thumbnail" function which appears limited to 1600 pixels. My code