ruby-samples
ruby-samples copied to clipboard
How to get page_id for creating slides
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
presentation_id = "1lMmb9kr1VGLe-GNtIAQGEYOH_gNWXceM5VFOIEDDTkM" presentation = service.get_presentation presentation_id
def create_slide(presentation_id, page_id) # [START slides_create_slide] body = Google::Apis::SlidesV1::Presentation.new requests = [{ create_slide: { # object_id_prop: page_id, insertion_index: '1', slide_layout_reference: { predefined_layout: 'TITLE_AND_TWO_COLUMNS' } } }]
Specifications
- Ruby version (
ruby -v). - OS (Mac/Linux/Windows)