Google Slides API
POST
slides.presentations.batchUpdate
{{baseUrl}}/v1/presentations/:presentationId:batchUpdate
QUERY PARAMS
presentationId
BODY json
{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate" {:content-type :json
:form-params {:requests [{:createImage {:elementProperties {:pageObjectId ""
:size {:height {:magnitude ""
:unit ""}
:width {}}
:transform {:scaleX ""
:scaleY ""
:shearX ""
:shearY ""
:translateX ""
:translateY ""
:unit ""}}
:objectId ""
:url ""}
:createLine {:category ""
:elementProperties {}
:lineCategory ""
:objectId ""}
:createParagraphBullets {:bulletPreset ""
:cellLocation {:columnIndex 0
:rowIndex 0}
:objectId ""
:textRange {:endIndex 0
:startIndex 0
:type ""}}
:createShape {:elementProperties {}
:objectId ""
:shapeType ""}
:createSheetsChart {:chartId 0
:elementProperties {}
:linkingMode ""
:objectId ""
:spreadsheetId ""}
:createSlide {:insertionIndex 0
:objectId ""
:placeholderIdMappings [{:layoutPlaceholder {:index 0
:parentObjectId ""
:type ""}
:layoutPlaceholderObjectId ""
:objectId ""}]
:slideLayoutReference {:layoutId ""
:predefinedLayout ""}}
:createTable {:columns 0
:elementProperties {}
:objectId ""
:rows 0}
:createVideo {:elementProperties {}
:id ""
:objectId ""
:source ""}
:deleteObject {:objectId ""}
:deleteParagraphBullets {:cellLocation {}
:objectId ""
:textRange {}}
:deleteTableColumn {:cellLocation {}
:tableObjectId ""}
:deleteTableRow {:cellLocation {}
:tableObjectId ""}
:deleteText {:cellLocation {}
:objectId ""
:textRange {}}
:duplicateObject {:objectId ""
:objectIds {}}
:groupObjects {:childrenObjectIds []
:groupObjectId ""}
:insertTableColumns {:cellLocation {}
:insertRight false
:number 0
:tableObjectId ""}
:insertTableRows {:cellLocation {}
:insertBelow false
:number 0
:tableObjectId ""}
:insertText {:cellLocation {}
:insertionIndex 0
:objectId ""
:text ""}
:mergeTableCells {:objectId ""
:tableRange {:columnSpan 0
:location {}
:rowSpan 0}}
:refreshSheetsChart {:objectId ""}
:replaceAllShapesWithImage {:containsText {:matchCase false
:text ""}
:imageReplaceMethod ""
:imageUrl ""
:pageObjectIds []
:replaceMethod ""}
:replaceAllShapesWithSheetsChart {:chartId 0
:containsText {}
:linkingMode ""
:pageObjectIds []
:spreadsheetId ""}
:replaceAllText {:containsText {}
:pageObjectIds []
:replaceText ""}
:replaceImage {:imageObjectId ""
:imageReplaceMethod ""
:url ""}
:rerouteLine {:objectId ""}
:ungroupObjects {:objectIds []}
:unmergeTableCells {:objectId ""
:tableRange {}}
:updateImageProperties {:fields ""
:imageProperties {:brightness ""
:contrast ""
:cropProperties {:angle ""
:bottomOffset ""
:leftOffset ""
:rightOffset ""
:topOffset ""}
:link {:pageObjectId ""
:relativeLink ""
:slideIndex 0
:url ""}
:outline {:dashStyle ""
:outlineFill {:solidFill {:alpha ""
:color {:rgbColor {:blue ""
:green ""
:red ""}
:themeColor ""}}}
:propertyState ""
:weight {}}
:recolor {:name ""
:recolorStops [{:alpha ""
:color {}
:position ""}]}
:shadow {:alignment ""
:alpha ""
:blurRadius {}
:color {}
:propertyState ""
:rotateWithShape false
:transform {}
:type ""}
:transparency ""}
:objectId ""}
:updateLineCategory {:lineCategory ""
:objectId ""}
:updateLineProperties {:fields ""
:lineProperties {:dashStyle ""
:endArrow ""
:endConnection {:connectedObjectId ""
:connectionSiteIndex 0}
:lineFill {:solidFill {}}
:link {}
:startArrow ""
:startConnection {}
:weight {}}
:objectId ""}
:updatePageElementAltText {:description ""
:objectId ""
:title ""}
:updatePageElementTransform {:applyMode ""
:objectId ""
:transform {}}
:updatePageElementsZOrder {:operation ""
:pageElementObjectIds []}
:updatePageProperties {:fields ""
:objectId ""
:pageProperties {:colorScheme {:colors [{:color {}
:type ""}]}
:pageBackgroundFill {:propertyState ""
:solidFill {}
:stretchedPictureFill {:contentUrl ""
:size {}}}}}
:updateParagraphStyle {:cellLocation {}
:fields ""
:objectId ""
:style {:alignment ""
:direction ""
:indentEnd {}
:indentFirstLine {}
:indentStart {}
:lineSpacing ""
:spaceAbove {}
:spaceBelow {}
:spacingMode ""}
:textRange {}}
:updateShapeProperties {:fields ""
:objectId ""
:shapeProperties {:autofit {:autofitType ""
:fontScale ""
:lineSpacingReduction ""}
:contentAlignment ""
:link {}
:outline {}
:shadow {}
:shapeBackgroundFill {:propertyState ""
:solidFill {}}}}
:updateSlideProperties {:fields ""
:objectId ""
:slideProperties {:isSkipped false
:layoutObjectId ""
:masterObjectId ""
:notesPage ""}}
:updateSlidesPosition {:insertionIndex 0
:slideObjectIds []}
:updateTableBorderProperties {:borderPosition ""
:fields ""
:objectId ""
:tableBorderProperties {:dashStyle ""
:tableBorderFill {:solidFill {}}
:weight {}}
:tableRange {}}
:updateTableCellProperties {:fields ""
:objectId ""
:tableCellProperties {:contentAlignment ""
:tableCellBackgroundFill {:propertyState ""
:solidFill {}}}
:tableRange {}}
:updateTableColumnProperties {:columnIndices []
:fields ""
:objectId ""
:tableColumnProperties {:columnWidth {}}}
:updateTableRowProperties {:fields ""
:objectId ""
:rowIndices []
:tableRowProperties {:minRowHeight {}}}
:updateTextStyle {:cellLocation {}
:fields ""
:objectId ""
:style {:backgroundColor {:opaqueColor {}}
:baselineOffset ""
:bold false
:fontFamily ""
:fontSize {}
:foregroundColor {}
:italic false
:link {}
:smallCaps false
:strikethrough false
:underline false
:weightedFontFamily {:fontFamily ""
:weight 0}}
:textRange {}}
:updateVideoProperties {:fields ""
:objectId ""
:videoProperties {:autoPlay false
:end 0
:mute false
:outline {}
:start 0}}}]
:writeControl {:requiredRevisionId ""}}})
require "http/client"
url = "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"),
Content = new StringContent("{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/presentations/:presentationId:batchUpdate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 10251
{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate")
.setHeader("content-type", "application/json")
.setBody("{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate")
.header("content-type", "application/json")
.body("{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
requests: [
{
createImage: {
elementProperties: {
pageObjectId: '',
size: {
height: {
magnitude: '',
unit: ''
},
width: {}
},
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
}
},
objectId: '',
url: ''
},
createLine: {
category: '',
elementProperties: {},
lineCategory: '',
objectId: ''
},
createParagraphBullets: {
bulletPreset: '',
cellLocation: {
columnIndex: 0,
rowIndex: 0
},
objectId: '',
textRange: {
endIndex: 0,
startIndex: 0,
type: ''
}
},
createShape: {
elementProperties: {},
objectId: '',
shapeType: ''
},
createSheetsChart: {
chartId: 0,
elementProperties: {},
linkingMode: '',
objectId: '',
spreadsheetId: ''
},
createSlide: {
insertionIndex: 0,
objectId: '',
placeholderIdMappings: [
{
layoutPlaceholder: {
index: 0,
parentObjectId: '',
type: ''
},
layoutPlaceholderObjectId: '',
objectId: ''
}
],
slideLayoutReference: {
layoutId: '',
predefinedLayout: ''
}
},
createTable: {
columns: 0,
elementProperties: {},
objectId: '',
rows: 0
},
createVideo: {
elementProperties: {},
id: '',
objectId: '',
source: ''
},
deleteObject: {
objectId: ''
},
deleteParagraphBullets: {
cellLocation: {},
objectId: '',
textRange: {}
},
deleteTableColumn: {
cellLocation: {},
tableObjectId: ''
},
deleteTableRow: {
cellLocation: {},
tableObjectId: ''
},
deleteText: {
cellLocation: {},
objectId: '',
textRange: {}
},
duplicateObject: {
objectId: '',
objectIds: {}
},
groupObjects: {
childrenObjectIds: [],
groupObjectId: ''
},
insertTableColumns: {
cellLocation: {},
insertRight: false,
number: 0,
tableObjectId: ''
},
insertTableRows: {
cellLocation: {},
insertBelow: false,
number: 0,
tableObjectId: ''
},
insertText: {
cellLocation: {},
insertionIndex: 0,
objectId: '',
text: ''
},
mergeTableCells: {
objectId: '',
tableRange: {
columnSpan: 0,
location: {},
rowSpan: 0
}
},
refreshSheetsChart: {
objectId: ''
},
replaceAllShapesWithImage: {
containsText: {
matchCase: false,
text: ''
},
imageReplaceMethod: '',
imageUrl: '',
pageObjectIds: [],
replaceMethod: ''
},
replaceAllShapesWithSheetsChart: {
chartId: 0,
containsText: {},
linkingMode: '',
pageObjectIds: [],
spreadsheetId: ''
},
replaceAllText: {
containsText: {},
pageObjectIds: [],
replaceText: ''
},
replaceImage: {
imageObjectId: '',
imageReplaceMethod: '',
url: ''
},
rerouteLine: {
objectId: ''
},
ungroupObjects: {
objectIds: []
},
unmergeTableCells: {
objectId: '',
tableRange: {}
},
updateImageProperties: {
fields: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {
angle: '',
bottomOffset: '',
leftOffset: '',
rightOffset: '',
topOffset: ''
},
link: {
pageObjectId: '',
relativeLink: '',
slideIndex: 0,
url: ''
},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {
alpha: '',
color: {
rgbColor: {
blue: '',
green: '',
red: ''
},
themeColor: ''
}
}
},
propertyState: '',
weight: {}
},
recolor: {
name: '',
recolorStops: [
{
alpha: '',
color: {},
position: ''
}
]
},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {},
type: ''
},
transparency: ''
},
objectId: ''
},
updateLineCategory: {
lineCategory: '',
objectId: ''
},
updateLineProperties: {
fields: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {
connectedObjectId: '',
connectionSiteIndex: 0
},
lineFill: {
solidFill: {}
},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
objectId: ''
},
updatePageElementAltText: {
description: '',
objectId: '',
title: ''
},
updatePageElementTransform: {
applyMode: '',
objectId: '',
transform: {}
},
updatePageElementsZOrder: {
operation: '',
pageElementObjectIds: []
},
updatePageProperties: {
fields: '',
objectId: '',
pageProperties: {
colorScheme: {
colors: [
{
color: {},
type: ''
}
]
},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {
contentUrl: '',
size: {}
}
}
}
},
updateParagraphStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
},
textRange: {}
},
updateShapeProperties: {
fields: '',
objectId: '',
shapeProperties: {
autofit: {
autofitType: '',
fontScale: '',
lineSpacingReduction: ''
},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {
propertyState: '',
solidFill: {}
}
}
},
updateSlideProperties: {
fields: '',
objectId: '',
slideProperties: {
isSkipped: false,
layoutObjectId: '',
masterObjectId: '',
notesPage: ''
}
},
updateSlidesPosition: {
insertionIndex: 0,
slideObjectIds: []
},
updateTableBorderProperties: {
borderPosition: '',
fields: '',
objectId: '',
tableBorderProperties: {
dashStyle: '',
tableBorderFill: {
solidFill: {}
},
weight: {}
},
tableRange: {}
},
updateTableCellProperties: {
fields: '',
objectId: '',
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {
propertyState: '',
solidFill: {}
}
},
tableRange: {}
},
updateTableColumnProperties: {
columnIndices: [],
fields: '',
objectId: '',
tableColumnProperties: {
columnWidth: {}
}
},
updateTableRowProperties: {
fields: '',
objectId: '',
rowIndices: [],
tableRowProperties: {
minRowHeight: {}
}
},
updateTextStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
backgroundColor: {
opaqueColor: {}
},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {
fontFamily: '',
weight: 0
}
},
textRange: {}
},
updateVideoProperties: {
fields: '',
objectId: '',
videoProperties: {
autoPlay: false,
end: 0,
mute: false,
outline: {},
start: 0
}
}
}
],
writeControl: {
requiredRevisionId: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate',
headers: {'content-type': 'application/json'},
data: {
requests: [
{
createImage: {
elementProperties: {
pageObjectId: '',
size: {height: {magnitude: '', unit: ''}, width: {}},
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
}
},
objectId: '',
url: ''
},
createLine: {category: '', elementProperties: {}, lineCategory: '', objectId: ''},
createParagraphBullets: {
bulletPreset: '',
cellLocation: {columnIndex: 0, rowIndex: 0},
objectId: '',
textRange: {endIndex: 0, startIndex: 0, type: ''}
},
createShape: {elementProperties: {}, objectId: '', shapeType: ''},
createSheetsChart: {
chartId: 0,
elementProperties: {},
linkingMode: '',
objectId: '',
spreadsheetId: ''
},
createSlide: {
insertionIndex: 0,
objectId: '',
placeholderIdMappings: [
{
layoutPlaceholder: {index: 0, parentObjectId: '', type: ''},
layoutPlaceholderObjectId: '',
objectId: ''
}
],
slideLayoutReference: {layoutId: '', predefinedLayout: ''}
},
createTable: {columns: 0, elementProperties: {}, objectId: '', rows: 0},
createVideo: {elementProperties: {}, id: '', objectId: '', source: ''},
deleteObject: {objectId: ''},
deleteParagraphBullets: {cellLocation: {}, objectId: '', textRange: {}},
deleteTableColumn: {cellLocation: {}, tableObjectId: ''},
deleteTableRow: {cellLocation: {}, tableObjectId: ''},
deleteText: {cellLocation: {}, objectId: '', textRange: {}},
duplicateObject: {objectId: '', objectIds: {}},
groupObjects: {childrenObjectIds: [], groupObjectId: ''},
insertTableColumns: {cellLocation: {}, insertRight: false, number: 0, tableObjectId: ''},
insertTableRows: {cellLocation: {}, insertBelow: false, number: 0, tableObjectId: ''},
insertText: {cellLocation: {}, insertionIndex: 0, objectId: '', text: ''},
mergeTableCells: {objectId: '', tableRange: {columnSpan: 0, location: {}, rowSpan: 0}},
refreshSheetsChart: {objectId: ''},
replaceAllShapesWithImage: {
containsText: {matchCase: false, text: ''},
imageReplaceMethod: '',
imageUrl: '',
pageObjectIds: [],
replaceMethod: ''
},
replaceAllShapesWithSheetsChart: {
chartId: 0,
containsText: {},
linkingMode: '',
pageObjectIds: [],
spreadsheetId: ''
},
replaceAllText: {containsText: {}, pageObjectIds: [], replaceText: ''},
replaceImage: {imageObjectId: '', imageReplaceMethod: '', url: ''},
rerouteLine: {objectId: ''},
ungroupObjects: {objectIds: []},
unmergeTableCells: {objectId: '', tableRange: {}},
updateImageProperties: {
fields: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {},
type: ''
},
transparency: ''
},
objectId: ''
},
updateLineCategory: {lineCategory: '', objectId: ''},
updateLineProperties: {
fields: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
objectId: ''
},
updatePageElementAltText: {description: '', objectId: '', title: ''},
updatePageElementTransform: {applyMode: '', objectId: '', transform: {}},
updatePageElementsZOrder: {operation: '', pageElementObjectIds: []},
updatePageProperties: {
fields: '',
objectId: '',
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
}
},
updateParagraphStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
},
textRange: {}
},
updateShapeProperties: {
fields: '',
objectId: '',
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
}
},
updateSlideProperties: {
fields: '',
objectId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
},
updateSlidesPosition: {insertionIndex: 0, slideObjectIds: []},
updateTableBorderProperties: {
borderPosition: '',
fields: '',
objectId: '',
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}},
tableRange: {}
},
updateTableCellProperties: {
fields: '',
objectId: '',
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
tableRange: {}
},
updateTableColumnProperties: {
columnIndices: [],
fields: '',
objectId: '',
tableColumnProperties: {columnWidth: {}}
},
updateTableRowProperties: {
fields: '',
objectId: '',
rowIndices: [],
tableRowProperties: {minRowHeight: {}}
},
updateTextStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
textRange: {}
},
updateVideoProperties: {
fields: '',
objectId: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
}
}
],
writeControl: {requiredRevisionId: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"requests":[{"createImage":{"elementProperties":{"pageObjectId":"","size":{"height":{"magnitude":"","unit":""},"width":{}},"transform":{"scaleX":"","scaleY":"","shearX":"","shearY":"","translateX":"","translateY":"","unit":""}},"objectId":"","url":""},"createLine":{"category":"","elementProperties":{},"lineCategory":"","objectId":""},"createParagraphBullets":{"bulletPreset":"","cellLocation":{"columnIndex":0,"rowIndex":0},"objectId":"","textRange":{"endIndex":0,"startIndex":0,"type":""}},"createShape":{"elementProperties":{},"objectId":"","shapeType":""},"createSheetsChart":{"chartId":0,"elementProperties":{},"linkingMode":"","objectId":"","spreadsheetId":""},"createSlide":{"insertionIndex":0,"objectId":"","placeholderIdMappings":[{"layoutPlaceholder":{"index":0,"parentObjectId":"","type":""},"layoutPlaceholderObjectId":"","objectId":""}],"slideLayoutReference":{"layoutId":"","predefinedLayout":""}},"createTable":{"columns":0,"elementProperties":{},"objectId":"","rows":0},"createVideo":{"elementProperties":{},"id":"","objectId":"","source":""},"deleteObject":{"objectId":""},"deleteParagraphBullets":{"cellLocation":{},"objectId":"","textRange":{}},"deleteTableColumn":{"cellLocation":{},"tableObjectId":""},"deleteTableRow":{"cellLocation":{},"tableObjectId":""},"deleteText":{"cellLocation":{},"objectId":"","textRange":{}},"duplicateObject":{"objectId":"","objectIds":{}},"groupObjects":{"childrenObjectIds":[],"groupObjectId":""},"insertTableColumns":{"cellLocation":{},"insertRight":false,"number":0,"tableObjectId":""},"insertTableRows":{"cellLocation":{},"insertBelow":false,"number":0,"tableObjectId":""},"insertText":{"cellLocation":{},"insertionIndex":0,"objectId":"","text":""},"mergeTableCells":{"objectId":"","tableRange":{"columnSpan":0,"location":{},"rowSpan":0}},"refreshSheetsChart":{"objectId":""},"replaceAllShapesWithImage":{"containsText":{"matchCase":false,"text":""},"imageReplaceMethod":"","imageUrl":"","pageObjectIds":[],"replaceMethod":""},"replaceAllShapesWithSheetsChart":{"chartId":0,"containsText":{},"linkingMode":"","pageObjectIds":[],"spreadsheetId":""},"replaceAllText":{"containsText":{},"pageObjectIds":[],"replaceText":""},"replaceImage":{"imageObjectId":"","imageReplaceMethod":"","url":""},"rerouteLine":{"objectId":""},"ungroupObjects":{"objectIds":[]},"unmergeTableCells":{"objectId":"","tableRange":{}},"updateImageProperties":{"fields":"","imageProperties":{"brightness":"","contrast":"","cropProperties":{"angle":"","bottomOffset":"","leftOffset":"","rightOffset":"","topOffset":""},"link":{"pageObjectId":"","relativeLink":"","slideIndex":0,"url":""},"outline":{"dashStyle":"","outlineFill":{"solidFill":{"alpha":"","color":{"rgbColor":{"blue":"","green":"","red":""},"themeColor":""}}},"propertyState":"","weight":{}},"recolor":{"name":"","recolorStops":[{"alpha":"","color":{},"position":""}]},"shadow":{"alignment":"","alpha":"","blurRadius":{},"color":{},"propertyState":"","rotateWithShape":false,"transform":{},"type":""},"transparency":""},"objectId":""},"updateLineCategory":{"lineCategory":"","objectId":""},"updateLineProperties":{"fields":"","lineProperties":{"dashStyle":"","endArrow":"","endConnection":{"connectedObjectId":"","connectionSiteIndex":0},"lineFill":{"solidFill":{}},"link":{},"startArrow":"","startConnection":{},"weight":{}},"objectId":""},"updatePageElementAltText":{"description":"","objectId":"","title":""},"updatePageElementTransform":{"applyMode":"","objectId":"","transform":{}},"updatePageElementsZOrder":{"operation":"","pageElementObjectIds":[]},"updatePageProperties":{"fields":"","objectId":"","pageProperties":{"colorScheme":{"colors":[{"color":{},"type":""}]},"pageBackgroundFill":{"propertyState":"","solidFill":{},"stretchedPictureFill":{"contentUrl":"","size":{}}}}},"updateParagraphStyle":{"cellLocation":{},"fields":"","objectId":"","style":{"alignment":"","direction":"","indentEnd":{},"indentFirstLine":{},"indentStart":{},"lineSpacing":"","spaceAbove":{},"spaceBelow":{},"spacingMode":""},"textRange":{}},"updateShapeProperties":{"fields":"","objectId":"","shapeProperties":{"autofit":{"autofitType":"","fontScale":"","lineSpacingReduction":""},"contentAlignment":"","link":{},"outline":{},"shadow":{},"shapeBackgroundFill":{"propertyState":"","solidFill":{}}}},"updateSlideProperties":{"fields":"","objectId":"","slideProperties":{"isSkipped":false,"layoutObjectId":"","masterObjectId":"","notesPage":""}},"updateSlidesPosition":{"insertionIndex":0,"slideObjectIds":[]},"updateTableBorderProperties":{"borderPosition":"","fields":"","objectId":"","tableBorderProperties":{"dashStyle":"","tableBorderFill":{"solidFill":{}},"weight":{}},"tableRange":{}},"updateTableCellProperties":{"fields":"","objectId":"","tableCellProperties":{"contentAlignment":"","tableCellBackgroundFill":{"propertyState":"","solidFill":{}}},"tableRange":{}},"updateTableColumnProperties":{"columnIndices":[],"fields":"","objectId":"","tableColumnProperties":{"columnWidth":{}}},"updateTableRowProperties":{"fields":"","objectId":"","rowIndices":[],"tableRowProperties":{"minRowHeight":{}}},"updateTextStyle":{"cellLocation":{},"fields":"","objectId":"","style":{"backgroundColor":{"opaqueColor":{}},"baselineOffset":"","bold":false,"fontFamily":"","fontSize":{},"foregroundColor":{},"italic":false,"link":{},"smallCaps":false,"strikethrough":false,"underline":false,"weightedFontFamily":{"fontFamily":"","weight":0}},"textRange":{}},"updateVideoProperties":{"fields":"","objectId":"","videoProperties":{"autoPlay":false,"end":0,"mute":false,"outline":{},"start":0}}}],"writeControl":{"requiredRevisionId":""}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "requests": [\n {\n "createImage": {\n "elementProperties": {\n "pageObjectId": "",\n "size": {\n "height": {\n "magnitude": "",\n "unit": ""\n },\n "width": {}\n },\n "transform": {\n "scaleX": "",\n "scaleY": "",\n "shearX": "",\n "shearY": "",\n "translateX": "",\n "translateY": "",\n "unit": ""\n }\n },\n "objectId": "",\n "url": ""\n },\n "createLine": {\n "category": "",\n "elementProperties": {},\n "lineCategory": "",\n "objectId": ""\n },\n "createParagraphBullets": {\n "bulletPreset": "",\n "cellLocation": {\n "columnIndex": 0,\n "rowIndex": 0\n },\n "objectId": "",\n "textRange": {\n "endIndex": 0,\n "startIndex": 0,\n "type": ""\n }\n },\n "createShape": {\n "elementProperties": {},\n "objectId": "",\n "shapeType": ""\n },\n "createSheetsChart": {\n "chartId": 0,\n "elementProperties": {},\n "linkingMode": "",\n "objectId": "",\n "spreadsheetId": ""\n },\n "createSlide": {\n "insertionIndex": 0,\n "objectId": "",\n "placeholderIdMappings": [\n {\n "layoutPlaceholder": {\n "index": 0,\n "parentObjectId": "",\n "type": ""\n },\n "layoutPlaceholderObjectId": "",\n "objectId": ""\n }\n ],\n "slideLayoutReference": {\n "layoutId": "",\n "predefinedLayout": ""\n }\n },\n "createTable": {\n "columns": 0,\n "elementProperties": {},\n "objectId": "",\n "rows": 0\n },\n "createVideo": {\n "elementProperties": {},\n "id": "",\n "objectId": "",\n "source": ""\n },\n "deleteObject": {\n "objectId": ""\n },\n "deleteParagraphBullets": {\n "cellLocation": {},\n "objectId": "",\n "textRange": {}\n },\n "deleteTableColumn": {\n "cellLocation": {},\n "tableObjectId": ""\n },\n "deleteTableRow": {\n "cellLocation": {},\n "tableObjectId": ""\n },\n "deleteText": {\n "cellLocation": {},\n "objectId": "",\n "textRange": {}\n },\n "duplicateObject": {\n "objectId": "",\n "objectIds": {}\n },\n "groupObjects": {\n "childrenObjectIds": [],\n "groupObjectId": ""\n },\n "insertTableColumns": {\n "cellLocation": {},\n "insertRight": false,\n "number": 0,\n "tableObjectId": ""\n },\n "insertTableRows": {\n "cellLocation": {},\n "insertBelow": false,\n "number": 0,\n "tableObjectId": ""\n },\n "insertText": {\n "cellLocation": {},\n "insertionIndex": 0,\n "objectId": "",\n "text": ""\n },\n "mergeTableCells": {\n "objectId": "",\n "tableRange": {\n "columnSpan": 0,\n "location": {},\n "rowSpan": 0\n }\n },\n "refreshSheetsChart": {\n "objectId": ""\n },\n "replaceAllShapesWithImage": {\n "containsText": {\n "matchCase": false,\n "text": ""\n },\n "imageReplaceMethod": "",\n "imageUrl": "",\n "pageObjectIds": [],\n "replaceMethod": ""\n },\n "replaceAllShapesWithSheetsChart": {\n "chartId": 0,\n "containsText": {},\n "linkingMode": "",\n "pageObjectIds": [],\n "spreadsheetId": ""\n },\n "replaceAllText": {\n "containsText": {},\n "pageObjectIds": [],\n "replaceText": ""\n },\n "replaceImage": {\n "imageObjectId": "",\n "imageReplaceMethod": "",\n "url": ""\n },\n "rerouteLine": {\n "objectId": ""\n },\n "ungroupObjects": {\n "objectIds": []\n },\n "unmergeTableCells": {\n "objectId": "",\n "tableRange": {}\n },\n "updateImageProperties": {\n "fields": "",\n "imageProperties": {\n "brightness": "",\n "contrast": "",\n "cropProperties": {\n "angle": "",\n "bottomOffset": "",\n "leftOffset": "",\n "rightOffset": "",\n "topOffset": ""\n },\n "link": {\n "pageObjectId": "",\n "relativeLink": "",\n "slideIndex": 0,\n "url": ""\n },\n "outline": {\n "dashStyle": "",\n "outlineFill": {\n "solidFill": {\n "alpha": "",\n "color": {\n "rgbColor": {\n "blue": "",\n "green": "",\n "red": ""\n },\n "themeColor": ""\n }\n }\n },\n "propertyState": "",\n "weight": {}\n },\n "recolor": {\n "name": "",\n "recolorStops": [\n {\n "alpha": "",\n "color": {},\n "position": ""\n }\n ]\n },\n "shadow": {\n "alignment": "",\n "alpha": "",\n "blurRadius": {},\n "color": {},\n "propertyState": "",\n "rotateWithShape": false,\n "transform": {},\n "type": ""\n },\n "transparency": ""\n },\n "objectId": ""\n },\n "updateLineCategory": {\n "lineCategory": "",\n "objectId": ""\n },\n "updateLineProperties": {\n "fields": "",\n "lineProperties": {\n "dashStyle": "",\n "endArrow": "",\n "endConnection": {\n "connectedObjectId": "",\n "connectionSiteIndex": 0\n },\n "lineFill": {\n "solidFill": {}\n },\n "link": {},\n "startArrow": "",\n "startConnection": {},\n "weight": {}\n },\n "objectId": ""\n },\n "updatePageElementAltText": {\n "description": "",\n "objectId": "",\n "title": ""\n },\n "updatePageElementTransform": {\n "applyMode": "",\n "objectId": "",\n "transform": {}\n },\n "updatePageElementsZOrder": {\n "operation": "",\n "pageElementObjectIds": []\n },\n "updatePageProperties": {\n "fields": "",\n "objectId": "",\n "pageProperties": {\n "colorScheme": {\n "colors": [\n {\n "color": {},\n "type": ""\n }\n ]\n },\n "pageBackgroundFill": {\n "propertyState": "",\n "solidFill": {},\n "stretchedPictureFill": {\n "contentUrl": "",\n "size": {}\n }\n }\n }\n },\n "updateParagraphStyle": {\n "cellLocation": {},\n "fields": "",\n "objectId": "",\n "style": {\n "alignment": "",\n "direction": "",\n "indentEnd": {},\n "indentFirstLine": {},\n "indentStart": {},\n "lineSpacing": "",\n "spaceAbove": {},\n "spaceBelow": {},\n "spacingMode": ""\n },\n "textRange": {}\n },\n "updateShapeProperties": {\n "fields": "",\n "objectId": "",\n "shapeProperties": {\n "autofit": {\n "autofitType": "",\n "fontScale": "",\n "lineSpacingReduction": ""\n },\n "contentAlignment": "",\n "link": {},\n "outline": {},\n "shadow": {},\n "shapeBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n }\n },\n "updateSlideProperties": {\n "fields": "",\n "objectId": "",\n "slideProperties": {\n "isSkipped": false,\n "layoutObjectId": "",\n "masterObjectId": "",\n "notesPage": ""\n }\n },\n "updateSlidesPosition": {\n "insertionIndex": 0,\n "slideObjectIds": []\n },\n "updateTableBorderProperties": {\n "borderPosition": "",\n "fields": "",\n "objectId": "",\n "tableBorderProperties": {\n "dashStyle": "",\n "tableBorderFill": {\n "solidFill": {}\n },\n "weight": {}\n },\n "tableRange": {}\n },\n "updateTableCellProperties": {\n "fields": "",\n "objectId": "",\n "tableCellProperties": {\n "contentAlignment": "",\n "tableCellBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n },\n "tableRange": {}\n },\n "updateTableColumnProperties": {\n "columnIndices": [],\n "fields": "",\n "objectId": "",\n "tableColumnProperties": {\n "columnWidth": {}\n }\n },\n "updateTableRowProperties": {\n "fields": "",\n "objectId": "",\n "rowIndices": [],\n "tableRowProperties": {\n "minRowHeight": {}\n }\n },\n "updateTextStyle": {\n "cellLocation": {},\n "fields": "",\n "objectId": "",\n "style": {\n "backgroundColor": {\n "opaqueColor": {}\n },\n "baselineOffset": "",\n "bold": false,\n "fontFamily": "",\n "fontSize": {},\n "foregroundColor": {},\n "italic": false,\n "link": {},\n "smallCaps": false,\n "strikethrough": false,\n "underline": false,\n "weightedFontFamily": {\n "fontFamily": "",\n "weight": 0\n }\n },\n "textRange": {}\n },\n "updateVideoProperties": {\n "fields": "",\n "objectId": "",\n "videoProperties": {\n "autoPlay": false,\n "end": 0,\n "mute": false,\n "outline": {},\n "start": 0\n }\n }\n }\n ],\n "writeControl": {\n "requiredRevisionId": ""\n }\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/presentations/:presentationId:batchUpdate',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
requests: [
{
createImage: {
elementProperties: {
pageObjectId: '',
size: {height: {magnitude: '', unit: ''}, width: {}},
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
}
},
objectId: '',
url: ''
},
createLine: {category: '', elementProperties: {}, lineCategory: '', objectId: ''},
createParagraphBullets: {
bulletPreset: '',
cellLocation: {columnIndex: 0, rowIndex: 0},
objectId: '',
textRange: {endIndex: 0, startIndex: 0, type: ''}
},
createShape: {elementProperties: {}, objectId: '', shapeType: ''},
createSheetsChart: {
chartId: 0,
elementProperties: {},
linkingMode: '',
objectId: '',
spreadsheetId: ''
},
createSlide: {
insertionIndex: 0,
objectId: '',
placeholderIdMappings: [
{
layoutPlaceholder: {index: 0, parentObjectId: '', type: ''},
layoutPlaceholderObjectId: '',
objectId: ''
}
],
slideLayoutReference: {layoutId: '', predefinedLayout: ''}
},
createTable: {columns: 0, elementProperties: {}, objectId: '', rows: 0},
createVideo: {elementProperties: {}, id: '', objectId: '', source: ''},
deleteObject: {objectId: ''},
deleteParagraphBullets: {cellLocation: {}, objectId: '', textRange: {}},
deleteTableColumn: {cellLocation: {}, tableObjectId: ''},
deleteTableRow: {cellLocation: {}, tableObjectId: ''},
deleteText: {cellLocation: {}, objectId: '', textRange: {}},
duplicateObject: {objectId: '', objectIds: {}},
groupObjects: {childrenObjectIds: [], groupObjectId: ''},
insertTableColumns: {cellLocation: {}, insertRight: false, number: 0, tableObjectId: ''},
insertTableRows: {cellLocation: {}, insertBelow: false, number: 0, tableObjectId: ''},
insertText: {cellLocation: {}, insertionIndex: 0, objectId: '', text: ''},
mergeTableCells: {objectId: '', tableRange: {columnSpan: 0, location: {}, rowSpan: 0}},
refreshSheetsChart: {objectId: ''},
replaceAllShapesWithImage: {
containsText: {matchCase: false, text: ''},
imageReplaceMethod: '',
imageUrl: '',
pageObjectIds: [],
replaceMethod: ''
},
replaceAllShapesWithSheetsChart: {
chartId: 0,
containsText: {},
linkingMode: '',
pageObjectIds: [],
spreadsheetId: ''
},
replaceAllText: {containsText: {}, pageObjectIds: [], replaceText: ''},
replaceImage: {imageObjectId: '', imageReplaceMethod: '', url: ''},
rerouteLine: {objectId: ''},
ungroupObjects: {objectIds: []},
unmergeTableCells: {objectId: '', tableRange: {}},
updateImageProperties: {
fields: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {},
type: ''
},
transparency: ''
},
objectId: ''
},
updateLineCategory: {lineCategory: '', objectId: ''},
updateLineProperties: {
fields: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
objectId: ''
},
updatePageElementAltText: {description: '', objectId: '', title: ''},
updatePageElementTransform: {applyMode: '', objectId: '', transform: {}},
updatePageElementsZOrder: {operation: '', pageElementObjectIds: []},
updatePageProperties: {
fields: '',
objectId: '',
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
}
},
updateParagraphStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
},
textRange: {}
},
updateShapeProperties: {
fields: '',
objectId: '',
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
}
},
updateSlideProperties: {
fields: '',
objectId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
},
updateSlidesPosition: {insertionIndex: 0, slideObjectIds: []},
updateTableBorderProperties: {
borderPosition: '',
fields: '',
objectId: '',
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}},
tableRange: {}
},
updateTableCellProperties: {
fields: '',
objectId: '',
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
tableRange: {}
},
updateTableColumnProperties: {
columnIndices: [],
fields: '',
objectId: '',
tableColumnProperties: {columnWidth: {}}
},
updateTableRowProperties: {
fields: '',
objectId: '',
rowIndices: [],
tableRowProperties: {minRowHeight: {}}
},
updateTextStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
textRange: {}
},
updateVideoProperties: {
fields: '',
objectId: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
}
}
],
writeControl: {requiredRevisionId: ''}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate',
headers: {'content-type': 'application/json'},
body: {
requests: [
{
createImage: {
elementProperties: {
pageObjectId: '',
size: {height: {magnitude: '', unit: ''}, width: {}},
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
}
},
objectId: '',
url: ''
},
createLine: {category: '', elementProperties: {}, lineCategory: '', objectId: ''},
createParagraphBullets: {
bulletPreset: '',
cellLocation: {columnIndex: 0, rowIndex: 0},
objectId: '',
textRange: {endIndex: 0, startIndex: 0, type: ''}
},
createShape: {elementProperties: {}, objectId: '', shapeType: ''},
createSheetsChart: {
chartId: 0,
elementProperties: {},
linkingMode: '',
objectId: '',
spreadsheetId: ''
},
createSlide: {
insertionIndex: 0,
objectId: '',
placeholderIdMappings: [
{
layoutPlaceholder: {index: 0, parentObjectId: '', type: ''},
layoutPlaceholderObjectId: '',
objectId: ''
}
],
slideLayoutReference: {layoutId: '', predefinedLayout: ''}
},
createTable: {columns: 0, elementProperties: {}, objectId: '', rows: 0},
createVideo: {elementProperties: {}, id: '', objectId: '', source: ''},
deleteObject: {objectId: ''},
deleteParagraphBullets: {cellLocation: {}, objectId: '', textRange: {}},
deleteTableColumn: {cellLocation: {}, tableObjectId: ''},
deleteTableRow: {cellLocation: {}, tableObjectId: ''},
deleteText: {cellLocation: {}, objectId: '', textRange: {}},
duplicateObject: {objectId: '', objectIds: {}},
groupObjects: {childrenObjectIds: [], groupObjectId: ''},
insertTableColumns: {cellLocation: {}, insertRight: false, number: 0, tableObjectId: ''},
insertTableRows: {cellLocation: {}, insertBelow: false, number: 0, tableObjectId: ''},
insertText: {cellLocation: {}, insertionIndex: 0, objectId: '', text: ''},
mergeTableCells: {objectId: '', tableRange: {columnSpan: 0, location: {}, rowSpan: 0}},
refreshSheetsChart: {objectId: ''},
replaceAllShapesWithImage: {
containsText: {matchCase: false, text: ''},
imageReplaceMethod: '',
imageUrl: '',
pageObjectIds: [],
replaceMethod: ''
},
replaceAllShapesWithSheetsChart: {
chartId: 0,
containsText: {},
linkingMode: '',
pageObjectIds: [],
spreadsheetId: ''
},
replaceAllText: {containsText: {}, pageObjectIds: [], replaceText: ''},
replaceImage: {imageObjectId: '', imageReplaceMethod: '', url: ''},
rerouteLine: {objectId: ''},
ungroupObjects: {objectIds: []},
unmergeTableCells: {objectId: '', tableRange: {}},
updateImageProperties: {
fields: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {},
type: ''
},
transparency: ''
},
objectId: ''
},
updateLineCategory: {lineCategory: '', objectId: ''},
updateLineProperties: {
fields: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
objectId: ''
},
updatePageElementAltText: {description: '', objectId: '', title: ''},
updatePageElementTransform: {applyMode: '', objectId: '', transform: {}},
updatePageElementsZOrder: {operation: '', pageElementObjectIds: []},
updatePageProperties: {
fields: '',
objectId: '',
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
}
},
updateParagraphStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
},
textRange: {}
},
updateShapeProperties: {
fields: '',
objectId: '',
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
}
},
updateSlideProperties: {
fields: '',
objectId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
},
updateSlidesPosition: {insertionIndex: 0, slideObjectIds: []},
updateTableBorderProperties: {
borderPosition: '',
fields: '',
objectId: '',
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}},
tableRange: {}
},
updateTableCellProperties: {
fields: '',
objectId: '',
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
tableRange: {}
},
updateTableColumnProperties: {
columnIndices: [],
fields: '',
objectId: '',
tableColumnProperties: {columnWidth: {}}
},
updateTableRowProperties: {
fields: '',
objectId: '',
rowIndices: [],
tableRowProperties: {minRowHeight: {}}
},
updateTextStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
textRange: {}
},
updateVideoProperties: {
fields: '',
objectId: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
}
}
],
writeControl: {requiredRevisionId: ''}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
requests: [
{
createImage: {
elementProperties: {
pageObjectId: '',
size: {
height: {
magnitude: '',
unit: ''
},
width: {}
},
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
}
},
objectId: '',
url: ''
},
createLine: {
category: '',
elementProperties: {},
lineCategory: '',
objectId: ''
},
createParagraphBullets: {
bulletPreset: '',
cellLocation: {
columnIndex: 0,
rowIndex: 0
},
objectId: '',
textRange: {
endIndex: 0,
startIndex: 0,
type: ''
}
},
createShape: {
elementProperties: {},
objectId: '',
shapeType: ''
},
createSheetsChart: {
chartId: 0,
elementProperties: {},
linkingMode: '',
objectId: '',
spreadsheetId: ''
},
createSlide: {
insertionIndex: 0,
objectId: '',
placeholderIdMappings: [
{
layoutPlaceholder: {
index: 0,
parentObjectId: '',
type: ''
},
layoutPlaceholderObjectId: '',
objectId: ''
}
],
slideLayoutReference: {
layoutId: '',
predefinedLayout: ''
}
},
createTable: {
columns: 0,
elementProperties: {},
objectId: '',
rows: 0
},
createVideo: {
elementProperties: {},
id: '',
objectId: '',
source: ''
},
deleteObject: {
objectId: ''
},
deleteParagraphBullets: {
cellLocation: {},
objectId: '',
textRange: {}
},
deleteTableColumn: {
cellLocation: {},
tableObjectId: ''
},
deleteTableRow: {
cellLocation: {},
tableObjectId: ''
},
deleteText: {
cellLocation: {},
objectId: '',
textRange: {}
},
duplicateObject: {
objectId: '',
objectIds: {}
},
groupObjects: {
childrenObjectIds: [],
groupObjectId: ''
},
insertTableColumns: {
cellLocation: {},
insertRight: false,
number: 0,
tableObjectId: ''
},
insertTableRows: {
cellLocation: {},
insertBelow: false,
number: 0,
tableObjectId: ''
},
insertText: {
cellLocation: {},
insertionIndex: 0,
objectId: '',
text: ''
},
mergeTableCells: {
objectId: '',
tableRange: {
columnSpan: 0,
location: {},
rowSpan: 0
}
},
refreshSheetsChart: {
objectId: ''
},
replaceAllShapesWithImage: {
containsText: {
matchCase: false,
text: ''
},
imageReplaceMethod: '',
imageUrl: '',
pageObjectIds: [],
replaceMethod: ''
},
replaceAllShapesWithSheetsChart: {
chartId: 0,
containsText: {},
linkingMode: '',
pageObjectIds: [],
spreadsheetId: ''
},
replaceAllText: {
containsText: {},
pageObjectIds: [],
replaceText: ''
},
replaceImage: {
imageObjectId: '',
imageReplaceMethod: '',
url: ''
},
rerouteLine: {
objectId: ''
},
ungroupObjects: {
objectIds: []
},
unmergeTableCells: {
objectId: '',
tableRange: {}
},
updateImageProperties: {
fields: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {
angle: '',
bottomOffset: '',
leftOffset: '',
rightOffset: '',
topOffset: ''
},
link: {
pageObjectId: '',
relativeLink: '',
slideIndex: 0,
url: ''
},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {
alpha: '',
color: {
rgbColor: {
blue: '',
green: '',
red: ''
},
themeColor: ''
}
}
},
propertyState: '',
weight: {}
},
recolor: {
name: '',
recolorStops: [
{
alpha: '',
color: {},
position: ''
}
]
},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {},
type: ''
},
transparency: ''
},
objectId: ''
},
updateLineCategory: {
lineCategory: '',
objectId: ''
},
updateLineProperties: {
fields: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {
connectedObjectId: '',
connectionSiteIndex: 0
},
lineFill: {
solidFill: {}
},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
objectId: ''
},
updatePageElementAltText: {
description: '',
objectId: '',
title: ''
},
updatePageElementTransform: {
applyMode: '',
objectId: '',
transform: {}
},
updatePageElementsZOrder: {
operation: '',
pageElementObjectIds: []
},
updatePageProperties: {
fields: '',
objectId: '',
pageProperties: {
colorScheme: {
colors: [
{
color: {},
type: ''
}
]
},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {
contentUrl: '',
size: {}
}
}
}
},
updateParagraphStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
},
textRange: {}
},
updateShapeProperties: {
fields: '',
objectId: '',
shapeProperties: {
autofit: {
autofitType: '',
fontScale: '',
lineSpacingReduction: ''
},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {
propertyState: '',
solidFill: {}
}
}
},
updateSlideProperties: {
fields: '',
objectId: '',
slideProperties: {
isSkipped: false,
layoutObjectId: '',
masterObjectId: '',
notesPage: ''
}
},
updateSlidesPosition: {
insertionIndex: 0,
slideObjectIds: []
},
updateTableBorderProperties: {
borderPosition: '',
fields: '',
objectId: '',
tableBorderProperties: {
dashStyle: '',
tableBorderFill: {
solidFill: {}
},
weight: {}
},
tableRange: {}
},
updateTableCellProperties: {
fields: '',
objectId: '',
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {
propertyState: '',
solidFill: {}
}
},
tableRange: {}
},
updateTableColumnProperties: {
columnIndices: [],
fields: '',
objectId: '',
tableColumnProperties: {
columnWidth: {}
}
},
updateTableRowProperties: {
fields: '',
objectId: '',
rowIndices: [],
tableRowProperties: {
minRowHeight: {}
}
},
updateTextStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
backgroundColor: {
opaqueColor: {}
},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {
fontFamily: '',
weight: 0
}
},
textRange: {}
},
updateVideoProperties: {
fields: '',
objectId: '',
videoProperties: {
autoPlay: false,
end: 0,
mute: false,
outline: {},
start: 0
}
}
}
],
writeControl: {
requiredRevisionId: ''
}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate',
headers: {'content-type': 'application/json'},
data: {
requests: [
{
createImage: {
elementProperties: {
pageObjectId: '',
size: {height: {magnitude: '', unit: ''}, width: {}},
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
}
},
objectId: '',
url: ''
},
createLine: {category: '', elementProperties: {}, lineCategory: '', objectId: ''},
createParagraphBullets: {
bulletPreset: '',
cellLocation: {columnIndex: 0, rowIndex: 0},
objectId: '',
textRange: {endIndex: 0, startIndex: 0, type: ''}
},
createShape: {elementProperties: {}, objectId: '', shapeType: ''},
createSheetsChart: {
chartId: 0,
elementProperties: {},
linkingMode: '',
objectId: '',
spreadsheetId: ''
},
createSlide: {
insertionIndex: 0,
objectId: '',
placeholderIdMappings: [
{
layoutPlaceholder: {index: 0, parentObjectId: '', type: ''},
layoutPlaceholderObjectId: '',
objectId: ''
}
],
slideLayoutReference: {layoutId: '', predefinedLayout: ''}
},
createTable: {columns: 0, elementProperties: {}, objectId: '', rows: 0},
createVideo: {elementProperties: {}, id: '', objectId: '', source: ''},
deleteObject: {objectId: ''},
deleteParagraphBullets: {cellLocation: {}, objectId: '', textRange: {}},
deleteTableColumn: {cellLocation: {}, tableObjectId: ''},
deleteTableRow: {cellLocation: {}, tableObjectId: ''},
deleteText: {cellLocation: {}, objectId: '', textRange: {}},
duplicateObject: {objectId: '', objectIds: {}},
groupObjects: {childrenObjectIds: [], groupObjectId: ''},
insertTableColumns: {cellLocation: {}, insertRight: false, number: 0, tableObjectId: ''},
insertTableRows: {cellLocation: {}, insertBelow: false, number: 0, tableObjectId: ''},
insertText: {cellLocation: {}, insertionIndex: 0, objectId: '', text: ''},
mergeTableCells: {objectId: '', tableRange: {columnSpan: 0, location: {}, rowSpan: 0}},
refreshSheetsChart: {objectId: ''},
replaceAllShapesWithImage: {
containsText: {matchCase: false, text: ''},
imageReplaceMethod: '',
imageUrl: '',
pageObjectIds: [],
replaceMethod: ''
},
replaceAllShapesWithSheetsChart: {
chartId: 0,
containsText: {},
linkingMode: '',
pageObjectIds: [],
spreadsheetId: ''
},
replaceAllText: {containsText: {}, pageObjectIds: [], replaceText: ''},
replaceImage: {imageObjectId: '', imageReplaceMethod: '', url: ''},
rerouteLine: {objectId: ''},
ungroupObjects: {objectIds: []},
unmergeTableCells: {objectId: '', tableRange: {}},
updateImageProperties: {
fields: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {},
type: ''
},
transparency: ''
},
objectId: ''
},
updateLineCategory: {lineCategory: '', objectId: ''},
updateLineProperties: {
fields: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
objectId: ''
},
updatePageElementAltText: {description: '', objectId: '', title: ''},
updatePageElementTransform: {applyMode: '', objectId: '', transform: {}},
updatePageElementsZOrder: {operation: '', pageElementObjectIds: []},
updatePageProperties: {
fields: '',
objectId: '',
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
}
},
updateParagraphStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
},
textRange: {}
},
updateShapeProperties: {
fields: '',
objectId: '',
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
}
},
updateSlideProperties: {
fields: '',
objectId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
},
updateSlidesPosition: {insertionIndex: 0, slideObjectIds: []},
updateTableBorderProperties: {
borderPosition: '',
fields: '',
objectId: '',
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}},
tableRange: {}
},
updateTableCellProperties: {
fields: '',
objectId: '',
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
tableRange: {}
},
updateTableColumnProperties: {
columnIndices: [],
fields: '',
objectId: '',
tableColumnProperties: {columnWidth: {}}
},
updateTableRowProperties: {
fields: '',
objectId: '',
rowIndices: [],
tableRowProperties: {minRowHeight: {}}
},
updateTextStyle: {
cellLocation: {},
fields: '',
objectId: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
textRange: {}
},
updateVideoProperties: {
fields: '',
objectId: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
}
}
],
writeControl: {requiredRevisionId: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"requests":[{"createImage":{"elementProperties":{"pageObjectId":"","size":{"height":{"magnitude":"","unit":""},"width":{}},"transform":{"scaleX":"","scaleY":"","shearX":"","shearY":"","translateX":"","translateY":"","unit":""}},"objectId":"","url":""},"createLine":{"category":"","elementProperties":{},"lineCategory":"","objectId":""},"createParagraphBullets":{"bulletPreset":"","cellLocation":{"columnIndex":0,"rowIndex":0},"objectId":"","textRange":{"endIndex":0,"startIndex":0,"type":""}},"createShape":{"elementProperties":{},"objectId":"","shapeType":""},"createSheetsChart":{"chartId":0,"elementProperties":{},"linkingMode":"","objectId":"","spreadsheetId":""},"createSlide":{"insertionIndex":0,"objectId":"","placeholderIdMappings":[{"layoutPlaceholder":{"index":0,"parentObjectId":"","type":""},"layoutPlaceholderObjectId":"","objectId":""}],"slideLayoutReference":{"layoutId":"","predefinedLayout":""}},"createTable":{"columns":0,"elementProperties":{},"objectId":"","rows":0},"createVideo":{"elementProperties":{},"id":"","objectId":"","source":""},"deleteObject":{"objectId":""},"deleteParagraphBullets":{"cellLocation":{},"objectId":"","textRange":{}},"deleteTableColumn":{"cellLocation":{},"tableObjectId":""},"deleteTableRow":{"cellLocation":{},"tableObjectId":""},"deleteText":{"cellLocation":{},"objectId":"","textRange":{}},"duplicateObject":{"objectId":"","objectIds":{}},"groupObjects":{"childrenObjectIds":[],"groupObjectId":""},"insertTableColumns":{"cellLocation":{},"insertRight":false,"number":0,"tableObjectId":""},"insertTableRows":{"cellLocation":{},"insertBelow":false,"number":0,"tableObjectId":""},"insertText":{"cellLocation":{},"insertionIndex":0,"objectId":"","text":""},"mergeTableCells":{"objectId":"","tableRange":{"columnSpan":0,"location":{},"rowSpan":0}},"refreshSheetsChart":{"objectId":""},"replaceAllShapesWithImage":{"containsText":{"matchCase":false,"text":""},"imageReplaceMethod":"","imageUrl":"","pageObjectIds":[],"replaceMethod":""},"replaceAllShapesWithSheetsChart":{"chartId":0,"containsText":{},"linkingMode":"","pageObjectIds":[],"spreadsheetId":""},"replaceAllText":{"containsText":{},"pageObjectIds":[],"replaceText":""},"replaceImage":{"imageObjectId":"","imageReplaceMethod":"","url":""},"rerouteLine":{"objectId":""},"ungroupObjects":{"objectIds":[]},"unmergeTableCells":{"objectId":"","tableRange":{}},"updateImageProperties":{"fields":"","imageProperties":{"brightness":"","contrast":"","cropProperties":{"angle":"","bottomOffset":"","leftOffset":"","rightOffset":"","topOffset":""},"link":{"pageObjectId":"","relativeLink":"","slideIndex":0,"url":""},"outline":{"dashStyle":"","outlineFill":{"solidFill":{"alpha":"","color":{"rgbColor":{"blue":"","green":"","red":""},"themeColor":""}}},"propertyState":"","weight":{}},"recolor":{"name":"","recolorStops":[{"alpha":"","color":{},"position":""}]},"shadow":{"alignment":"","alpha":"","blurRadius":{},"color":{},"propertyState":"","rotateWithShape":false,"transform":{},"type":""},"transparency":""},"objectId":""},"updateLineCategory":{"lineCategory":"","objectId":""},"updateLineProperties":{"fields":"","lineProperties":{"dashStyle":"","endArrow":"","endConnection":{"connectedObjectId":"","connectionSiteIndex":0},"lineFill":{"solidFill":{}},"link":{},"startArrow":"","startConnection":{},"weight":{}},"objectId":""},"updatePageElementAltText":{"description":"","objectId":"","title":""},"updatePageElementTransform":{"applyMode":"","objectId":"","transform":{}},"updatePageElementsZOrder":{"operation":"","pageElementObjectIds":[]},"updatePageProperties":{"fields":"","objectId":"","pageProperties":{"colorScheme":{"colors":[{"color":{},"type":""}]},"pageBackgroundFill":{"propertyState":"","solidFill":{},"stretchedPictureFill":{"contentUrl":"","size":{}}}}},"updateParagraphStyle":{"cellLocation":{},"fields":"","objectId":"","style":{"alignment":"","direction":"","indentEnd":{},"indentFirstLine":{},"indentStart":{},"lineSpacing":"","spaceAbove":{},"spaceBelow":{},"spacingMode":""},"textRange":{}},"updateShapeProperties":{"fields":"","objectId":"","shapeProperties":{"autofit":{"autofitType":"","fontScale":"","lineSpacingReduction":""},"contentAlignment":"","link":{},"outline":{},"shadow":{},"shapeBackgroundFill":{"propertyState":"","solidFill":{}}}},"updateSlideProperties":{"fields":"","objectId":"","slideProperties":{"isSkipped":false,"layoutObjectId":"","masterObjectId":"","notesPage":""}},"updateSlidesPosition":{"insertionIndex":0,"slideObjectIds":[]},"updateTableBorderProperties":{"borderPosition":"","fields":"","objectId":"","tableBorderProperties":{"dashStyle":"","tableBorderFill":{"solidFill":{}},"weight":{}},"tableRange":{}},"updateTableCellProperties":{"fields":"","objectId":"","tableCellProperties":{"contentAlignment":"","tableCellBackgroundFill":{"propertyState":"","solidFill":{}}},"tableRange":{}},"updateTableColumnProperties":{"columnIndices":[],"fields":"","objectId":"","tableColumnProperties":{"columnWidth":{}}},"updateTableRowProperties":{"fields":"","objectId":"","rowIndices":[],"tableRowProperties":{"minRowHeight":{}}},"updateTextStyle":{"cellLocation":{},"fields":"","objectId":"","style":{"backgroundColor":{"opaqueColor":{}},"baselineOffset":"","bold":false,"fontFamily":"","fontSize":{},"foregroundColor":{},"italic":false,"link":{},"smallCaps":false,"strikethrough":false,"underline":false,"weightedFontFamily":{"fontFamily":"","weight":0}},"textRange":{}},"updateVideoProperties":{"fields":"","objectId":"","videoProperties":{"autoPlay":false,"end":0,"mute":false,"outline":{},"start":0}}}],"writeControl":{"requiredRevisionId":""}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"requests": @[ @{ @"createImage": @{ @"elementProperties": @{ @"pageObjectId": @"", @"size": @{ @"height": @{ @"magnitude": @"", @"unit": @"" }, @"width": @{ } }, @"transform": @{ @"scaleX": @"", @"scaleY": @"", @"shearX": @"", @"shearY": @"", @"translateX": @"", @"translateY": @"", @"unit": @"" } }, @"objectId": @"", @"url": @"" }, @"createLine": @{ @"category": @"", @"elementProperties": @{ }, @"lineCategory": @"", @"objectId": @"" }, @"createParagraphBullets": @{ @"bulletPreset": @"", @"cellLocation": @{ @"columnIndex": @0, @"rowIndex": @0 }, @"objectId": @"", @"textRange": @{ @"endIndex": @0, @"startIndex": @0, @"type": @"" } }, @"createShape": @{ @"elementProperties": @{ }, @"objectId": @"", @"shapeType": @"" }, @"createSheetsChart": @{ @"chartId": @0, @"elementProperties": @{ }, @"linkingMode": @"", @"objectId": @"", @"spreadsheetId": @"" }, @"createSlide": @{ @"insertionIndex": @0, @"objectId": @"", @"placeholderIdMappings": @[ @{ @"layoutPlaceholder": @{ @"index": @0, @"parentObjectId": @"", @"type": @"" }, @"layoutPlaceholderObjectId": @"", @"objectId": @"" } ], @"slideLayoutReference": @{ @"layoutId": @"", @"predefinedLayout": @"" } }, @"createTable": @{ @"columns": @0, @"elementProperties": @{ }, @"objectId": @"", @"rows": @0 }, @"createVideo": @{ @"elementProperties": @{ }, @"id": @"", @"objectId": @"", @"source": @"" }, @"deleteObject": @{ @"objectId": @"" }, @"deleteParagraphBullets": @{ @"cellLocation": @{ }, @"objectId": @"", @"textRange": @{ } }, @"deleteTableColumn": @{ @"cellLocation": @{ }, @"tableObjectId": @"" }, @"deleteTableRow": @{ @"cellLocation": @{ }, @"tableObjectId": @"" }, @"deleteText": @{ @"cellLocation": @{ }, @"objectId": @"", @"textRange": @{ } }, @"duplicateObject": @{ @"objectId": @"", @"objectIds": @{ } }, @"groupObjects": @{ @"childrenObjectIds": @[ ], @"groupObjectId": @"" }, @"insertTableColumns": @{ @"cellLocation": @{ }, @"insertRight": @NO, @"number": @0, @"tableObjectId": @"" }, @"insertTableRows": @{ @"cellLocation": @{ }, @"insertBelow": @NO, @"number": @0, @"tableObjectId": @"" }, @"insertText": @{ @"cellLocation": @{ }, @"insertionIndex": @0, @"objectId": @"", @"text": @"" }, @"mergeTableCells": @{ @"objectId": @"", @"tableRange": @{ @"columnSpan": @0, @"location": @{ }, @"rowSpan": @0 } }, @"refreshSheetsChart": @{ @"objectId": @"" }, @"replaceAllShapesWithImage": @{ @"containsText": @{ @"matchCase": @NO, @"text": @"" }, @"imageReplaceMethod": @"", @"imageUrl": @"", @"pageObjectIds": @[ ], @"replaceMethod": @"" }, @"replaceAllShapesWithSheetsChart": @{ @"chartId": @0, @"containsText": @{ }, @"linkingMode": @"", @"pageObjectIds": @[ ], @"spreadsheetId": @"" }, @"replaceAllText": @{ @"containsText": @{ }, @"pageObjectIds": @[ ], @"replaceText": @"" }, @"replaceImage": @{ @"imageObjectId": @"", @"imageReplaceMethod": @"", @"url": @"" }, @"rerouteLine": @{ @"objectId": @"" }, @"ungroupObjects": @{ @"objectIds": @[ ] }, @"unmergeTableCells": @{ @"objectId": @"", @"tableRange": @{ } }, @"updateImageProperties": @{ @"fields": @"", @"imageProperties": @{ @"brightness": @"", @"contrast": @"", @"cropProperties": @{ @"angle": @"", @"bottomOffset": @"", @"leftOffset": @"", @"rightOffset": @"", @"topOffset": @"" }, @"link": @{ @"pageObjectId": @"", @"relativeLink": @"", @"slideIndex": @0, @"url": @"" }, @"outline": @{ @"dashStyle": @"", @"outlineFill": @{ @"solidFill": @{ @"alpha": @"", @"color": @{ @"rgbColor": @{ @"blue": @"", @"green": @"", @"red": @"" }, @"themeColor": @"" } } }, @"propertyState": @"", @"weight": @{ } }, @"recolor": @{ @"name": @"", @"recolorStops": @[ @{ @"alpha": @"", @"color": @{ }, @"position": @"" } ] }, @"shadow": @{ @"alignment": @"", @"alpha": @"", @"blurRadius": @{ }, @"color": @{ }, @"propertyState": @"", @"rotateWithShape": @NO, @"transform": @{ }, @"type": @"" }, @"transparency": @"" }, @"objectId": @"" }, @"updateLineCategory": @{ @"lineCategory": @"", @"objectId": @"" }, @"updateLineProperties": @{ @"fields": @"", @"lineProperties": @{ @"dashStyle": @"", @"endArrow": @"", @"endConnection": @{ @"connectedObjectId": @"", @"connectionSiteIndex": @0 }, @"lineFill": @{ @"solidFill": @{ } }, @"link": @{ }, @"startArrow": @"", @"startConnection": @{ }, @"weight": @{ } }, @"objectId": @"" }, @"updatePageElementAltText": @{ @"description": @"", @"objectId": @"", @"title": @"" }, @"updatePageElementTransform": @{ @"applyMode": @"", @"objectId": @"", @"transform": @{ } }, @"updatePageElementsZOrder": @{ @"operation": @"", @"pageElementObjectIds": @[ ] }, @"updatePageProperties": @{ @"fields": @"", @"objectId": @"", @"pageProperties": @{ @"colorScheme": @{ @"colors": @[ @{ @"color": @{ }, @"type": @"" } ] }, @"pageBackgroundFill": @{ @"propertyState": @"", @"solidFill": @{ }, @"stretchedPictureFill": @{ @"contentUrl": @"", @"size": @{ } } } } }, @"updateParagraphStyle": @{ @"cellLocation": @{ }, @"fields": @"", @"objectId": @"", @"style": @{ @"alignment": @"", @"direction": @"", @"indentEnd": @{ }, @"indentFirstLine": @{ }, @"indentStart": @{ }, @"lineSpacing": @"", @"spaceAbove": @{ }, @"spaceBelow": @{ }, @"spacingMode": @"" }, @"textRange": @{ } }, @"updateShapeProperties": @{ @"fields": @"", @"objectId": @"", @"shapeProperties": @{ @"autofit": @{ @"autofitType": @"", @"fontScale": @"", @"lineSpacingReduction": @"" }, @"contentAlignment": @"", @"link": @{ }, @"outline": @{ }, @"shadow": @{ }, @"shapeBackgroundFill": @{ @"propertyState": @"", @"solidFill": @{ } } } }, @"updateSlideProperties": @{ @"fields": @"", @"objectId": @"", @"slideProperties": @{ @"isSkipped": @NO, @"layoutObjectId": @"", @"masterObjectId": @"", @"notesPage": @"" } }, @"updateSlidesPosition": @{ @"insertionIndex": @0, @"slideObjectIds": @[ ] }, @"updateTableBorderProperties": @{ @"borderPosition": @"", @"fields": @"", @"objectId": @"", @"tableBorderProperties": @{ @"dashStyle": @"", @"tableBorderFill": @{ @"solidFill": @{ } }, @"weight": @{ } }, @"tableRange": @{ } }, @"updateTableCellProperties": @{ @"fields": @"", @"objectId": @"", @"tableCellProperties": @{ @"contentAlignment": @"", @"tableCellBackgroundFill": @{ @"propertyState": @"", @"solidFill": @{ } } }, @"tableRange": @{ } }, @"updateTableColumnProperties": @{ @"columnIndices": @[ ], @"fields": @"", @"objectId": @"", @"tableColumnProperties": @{ @"columnWidth": @{ } } }, @"updateTableRowProperties": @{ @"fields": @"", @"objectId": @"", @"rowIndices": @[ ], @"tableRowProperties": @{ @"minRowHeight": @{ } } }, @"updateTextStyle": @{ @"cellLocation": @{ }, @"fields": @"", @"objectId": @"", @"style": @{ @"backgroundColor": @{ @"opaqueColor": @{ } }, @"baselineOffset": @"", @"bold": @NO, @"fontFamily": @"", @"fontSize": @{ }, @"foregroundColor": @{ }, @"italic": @NO, @"link": @{ }, @"smallCaps": @NO, @"strikethrough": @NO, @"underline": @NO, @"weightedFontFamily": @{ @"fontFamily": @"", @"weight": @0 } }, @"textRange": @{ } }, @"updateVideoProperties": @{ @"fields": @"", @"objectId": @"", @"videoProperties": @{ @"autoPlay": @NO, @"end": @0, @"mute": @NO, @"outline": @{ }, @"start": @0 } } } ],
@"writeControl": @{ @"requiredRevisionId": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/presentations/:presentationId:batchUpdate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'createImage' => [
'elementProperties' => [
'pageObjectId' => '',
'size' => [
'height' => [
'magnitude' => '',
'unit' => ''
],
'width' => [
]
],
'transform' => [
'scaleX' => '',
'scaleY' => '',
'shearX' => '',
'shearY' => '',
'translateX' => '',
'translateY' => '',
'unit' => ''
]
],
'objectId' => '',
'url' => ''
],
'createLine' => [
'category' => '',
'elementProperties' => [
],
'lineCategory' => '',
'objectId' => ''
],
'createParagraphBullets' => [
'bulletPreset' => '',
'cellLocation' => [
'columnIndex' => 0,
'rowIndex' => 0
],
'objectId' => '',
'textRange' => [
'endIndex' => 0,
'startIndex' => 0,
'type' => ''
]
],
'createShape' => [
'elementProperties' => [
],
'objectId' => '',
'shapeType' => ''
],
'createSheetsChart' => [
'chartId' => 0,
'elementProperties' => [
],
'linkingMode' => '',
'objectId' => '',
'spreadsheetId' => ''
],
'createSlide' => [
'insertionIndex' => 0,
'objectId' => '',
'placeholderIdMappings' => [
[
'layoutPlaceholder' => [
'index' => 0,
'parentObjectId' => '',
'type' => ''
],
'layoutPlaceholderObjectId' => '',
'objectId' => ''
]
],
'slideLayoutReference' => [
'layoutId' => '',
'predefinedLayout' => ''
]
],
'createTable' => [
'columns' => 0,
'elementProperties' => [
],
'objectId' => '',
'rows' => 0
],
'createVideo' => [
'elementProperties' => [
],
'id' => '',
'objectId' => '',
'source' => ''
],
'deleteObject' => [
'objectId' => ''
],
'deleteParagraphBullets' => [
'cellLocation' => [
],
'objectId' => '',
'textRange' => [
]
],
'deleteTableColumn' => [
'cellLocation' => [
],
'tableObjectId' => ''
],
'deleteTableRow' => [
'cellLocation' => [
],
'tableObjectId' => ''
],
'deleteText' => [
'cellLocation' => [
],
'objectId' => '',
'textRange' => [
]
],
'duplicateObject' => [
'objectId' => '',
'objectIds' => [
]
],
'groupObjects' => [
'childrenObjectIds' => [
],
'groupObjectId' => ''
],
'insertTableColumns' => [
'cellLocation' => [
],
'insertRight' => null,
'number' => 0,
'tableObjectId' => ''
],
'insertTableRows' => [
'cellLocation' => [
],
'insertBelow' => null,
'number' => 0,
'tableObjectId' => ''
],
'insertText' => [
'cellLocation' => [
],
'insertionIndex' => 0,
'objectId' => '',
'text' => ''
],
'mergeTableCells' => [
'objectId' => '',
'tableRange' => [
'columnSpan' => 0,
'location' => [
],
'rowSpan' => 0
]
],
'refreshSheetsChart' => [
'objectId' => ''
],
'replaceAllShapesWithImage' => [
'containsText' => [
'matchCase' => null,
'text' => ''
],
'imageReplaceMethod' => '',
'imageUrl' => '',
'pageObjectIds' => [
],
'replaceMethod' => ''
],
'replaceAllShapesWithSheetsChart' => [
'chartId' => 0,
'containsText' => [
],
'linkingMode' => '',
'pageObjectIds' => [
],
'spreadsheetId' => ''
],
'replaceAllText' => [
'containsText' => [
],
'pageObjectIds' => [
],
'replaceText' => ''
],
'replaceImage' => [
'imageObjectId' => '',
'imageReplaceMethod' => '',
'url' => ''
],
'rerouteLine' => [
'objectId' => ''
],
'ungroupObjects' => [
'objectIds' => [
]
],
'unmergeTableCells' => [
'objectId' => '',
'tableRange' => [
]
],
'updateImageProperties' => [
'fields' => '',
'imageProperties' => [
'brightness' => '',
'contrast' => '',
'cropProperties' => [
'angle' => '',
'bottomOffset' => '',
'leftOffset' => '',
'rightOffset' => '',
'topOffset' => ''
],
'link' => [
'pageObjectId' => '',
'relativeLink' => '',
'slideIndex' => 0,
'url' => ''
],
'outline' => [
'dashStyle' => '',
'outlineFill' => [
'solidFill' => [
'alpha' => '',
'color' => [
'rgbColor' => [
'blue' => '',
'green' => '',
'red' => ''
],
'themeColor' => ''
]
]
],
'propertyState' => '',
'weight' => [
]
],
'recolor' => [
'name' => '',
'recolorStops' => [
[
'alpha' => '',
'color' => [
],
'position' => ''
]
]
],
'shadow' => [
'alignment' => '',
'alpha' => '',
'blurRadius' => [
],
'color' => [
],
'propertyState' => '',
'rotateWithShape' => null,
'transform' => [
],
'type' => ''
],
'transparency' => ''
],
'objectId' => ''
],
'updateLineCategory' => [
'lineCategory' => '',
'objectId' => ''
],
'updateLineProperties' => [
'fields' => '',
'lineProperties' => [
'dashStyle' => '',
'endArrow' => '',
'endConnection' => [
'connectedObjectId' => '',
'connectionSiteIndex' => 0
],
'lineFill' => [
'solidFill' => [
]
],
'link' => [
],
'startArrow' => '',
'startConnection' => [
],
'weight' => [
]
],
'objectId' => ''
],
'updatePageElementAltText' => [
'description' => '',
'objectId' => '',
'title' => ''
],
'updatePageElementTransform' => [
'applyMode' => '',
'objectId' => '',
'transform' => [
]
],
'updatePageElementsZOrder' => [
'operation' => '',
'pageElementObjectIds' => [
]
],
'updatePageProperties' => [
'fields' => '',
'objectId' => '',
'pageProperties' => [
'colorScheme' => [
'colors' => [
[
'color' => [
],
'type' => ''
]
]
],
'pageBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
],
'stretchedPictureFill' => [
'contentUrl' => '',
'size' => [
]
]
]
]
],
'updateParagraphStyle' => [
'cellLocation' => [
],
'fields' => '',
'objectId' => '',
'style' => [
'alignment' => '',
'direction' => '',
'indentEnd' => [
],
'indentFirstLine' => [
],
'indentStart' => [
],
'lineSpacing' => '',
'spaceAbove' => [
],
'spaceBelow' => [
],
'spacingMode' => ''
],
'textRange' => [
]
],
'updateShapeProperties' => [
'fields' => '',
'objectId' => '',
'shapeProperties' => [
'autofit' => [
'autofitType' => '',
'fontScale' => '',
'lineSpacingReduction' => ''
],
'contentAlignment' => '',
'link' => [
],
'outline' => [
],
'shadow' => [
],
'shapeBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
]
],
'updateSlideProperties' => [
'fields' => '',
'objectId' => '',
'slideProperties' => [
'isSkipped' => null,
'layoutObjectId' => '',
'masterObjectId' => '',
'notesPage' => ''
]
],
'updateSlidesPosition' => [
'insertionIndex' => 0,
'slideObjectIds' => [
]
],
'updateTableBorderProperties' => [
'borderPosition' => '',
'fields' => '',
'objectId' => '',
'tableBorderProperties' => [
'dashStyle' => '',
'tableBorderFill' => [
'solidFill' => [
]
],
'weight' => [
]
],
'tableRange' => [
]
],
'updateTableCellProperties' => [
'fields' => '',
'objectId' => '',
'tableCellProperties' => [
'contentAlignment' => '',
'tableCellBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'tableRange' => [
]
],
'updateTableColumnProperties' => [
'columnIndices' => [
],
'fields' => '',
'objectId' => '',
'tableColumnProperties' => [
'columnWidth' => [
]
]
],
'updateTableRowProperties' => [
'fields' => '',
'objectId' => '',
'rowIndices' => [
],
'tableRowProperties' => [
'minRowHeight' => [
]
]
],
'updateTextStyle' => [
'cellLocation' => [
],
'fields' => '',
'objectId' => '',
'style' => [
'backgroundColor' => [
'opaqueColor' => [
]
],
'baselineOffset' => '',
'bold' => null,
'fontFamily' => '',
'fontSize' => [
],
'foregroundColor' => [
],
'italic' => null,
'link' => [
],
'smallCaps' => null,
'strikethrough' => null,
'underline' => null,
'weightedFontFamily' => [
'fontFamily' => '',
'weight' => 0
]
],
'textRange' => [
]
],
'updateVideoProperties' => [
'fields' => '',
'objectId' => '',
'videoProperties' => [
'autoPlay' => null,
'end' => 0,
'mute' => null,
'outline' => [
],
'start' => 0
]
]
]
],
'writeControl' => [
'requiredRevisionId' => ''
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate', [
'body' => '{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/presentations/:presentationId:batchUpdate');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'requests' => [
[
'createImage' => [
'elementProperties' => [
'pageObjectId' => '',
'size' => [
'height' => [
'magnitude' => '',
'unit' => ''
],
'width' => [
]
],
'transform' => [
'scaleX' => '',
'scaleY' => '',
'shearX' => '',
'shearY' => '',
'translateX' => '',
'translateY' => '',
'unit' => ''
]
],
'objectId' => '',
'url' => ''
],
'createLine' => [
'category' => '',
'elementProperties' => [
],
'lineCategory' => '',
'objectId' => ''
],
'createParagraphBullets' => [
'bulletPreset' => '',
'cellLocation' => [
'columnIndex' => 0,
'rowIndex' => 0
],
'objectId' => '',
'textRange' => [
'endIndex' => 0,
'startIndex' => 0,
'type' => ''
]
],
'createShape' => [
'elementProperties' => [
],
'objectId' => '',
'shapeType' => ''
],
'createSheetsChart' => [
'chartId' => 0,
'elementProperties' => [
],
'linkingMode' => '',
'objectId' => '',
'spreadsheetId' => ''
],
'createSlide' => [
'insertionIndex' => 0,
'objectId' => '',
'placeholderIdMappings' => [
[
'layoutPlaceholder' => [
'index' => 0,
'parentObjectId' => '',
'type' => ''
],
'layoutPlaceholderObjectId' => '',
'objectId' => ''
]
],
'slideLayoutReference' => [
'layoutId' => '',
'predefinedLayout' => ''
]
],
'createTable' => [
'columns' => 0,
'elementProperties' => [
],
'objectId' => '',
'rows' => 0
],
'createVideo' => [
'elementProperties' => [
],
'id' => '',
'objectId' => '',
'source' => ''
],
'deleteObject' => [
'objectId' => ''
],
'deleteParagraphBullets' => [
'cellLocation' => [
],
'objectId' => '',
'textRange' => [
]
],
'deleteTableColumn' => [
'cellLocation' => [
],
'tableObjectId' => ''
],
'deleteTableRow' => [
'cellLocation' => [
],
'tableObjectId' => ''
],
'deleteText' => [
'cellLocation' => [
],
'objectId' => '',
'textRange' => [
]
],
'duplicateObject' => [
'objectId' => '',
'objectIds' => [
]
],
'groupObjects' => [
'childrenObjectIds' => [
],
'groupObjectId' => ''
],
'insertTableColumns' => [
'cellLocation' => [
],
'insertRight' => null,
'number' => 0,
'tableObjectId' => ''
],
'insertTableRows' => [
'cellLocation' => [
],
'insertBelow' => null,
'number' => 0,
'tableObjectId' => ''
],
'insertText' => [
'cellLocation' => [
],
'insertionIndex' => 0,
'objectId' => '',
'text' => ''
],
'mergeTableCells' => [
'objectId' => '',
'tableRange' => [
'columnSpan' => 0,
'location' => [
],
'rowSpan' => 0
]
],
'refreshSheetsChart' => [
'objectId' => ''
],
'replaceAllShapesWithImage' => [
'containsText' => [
'matchCase' => null,
'text' => ''
],
'imageReplaceMethod' => '',
'imageUrl' => '',
'pageObjectIds' => [
],
'replaceMethod' => ''
],
'replaceAllShapesWithSheetsChart' => [
'chartId' => 0,
'containsText' => [
],
'linkingMode' => '',
'pageObjectIds' => [
],
'spreadsheetId' => ''
],
'replaceAllText' => [
'containsText' => [
],
'pageObjectIds' => [
],
'replaceText' => ''
],
'replaceImage' => [
'imageObjectId' => '',
'imageReplaceMethod' => '',
'url' => ''
],
'rerouteLine' => [
'objectId' => ''
],
'ungroupObjects' => [
'objectIds' => [
]
],
'unmergeTableCells' => [
'objectId' => '',
'tableRange' => [
]
],
'updateImageProperties' => [
'fields' => '',
'imageProperties' => [
'brightness' => '',
'contrast' => '',
'cropProperties' => [
'angle' => '',
'bottomOffset' => '',
'leftOffset' => '',
'rightOffset' => '',
'topOffset' => ''
],
'link' => [
'pageObjectId' => '',
'relativeLink' => '',
'slideIndex' => 0,
'url' => ''
],
'outline' => [
'dashStyle' => '',
'outlineFill' => [
'solidFill' => [
'alpha' => '',
'color' => [
'rgbColor' => [
'blue' => '',
'green' => '',
'red' => ''
],
'themeColor' => ''
]
]
],
'propertyState' => '',
'weight' => [
]
],
'recolor' => [
'name' => '',
'recolorStops' => [
[
'alpha' => '',
'color' => [
],
'position' => ''
]
]
],
'shadow' => [
'alignment' => '',
'alpha' => '',
'blurRadius' => [
],
'color' => [
],
'propertyState' => '',
'rotateWithShape' => null,
'transform' => [
],
'type' => ''
],
'transparency' => ''
],
'objectId' => ''
],
'updateLineCategory' => [
'lineCategory' => '',
'objectId' => ''
],
'updateLineProperties' => [
'fields' => '',
'lineProperties' => [
'dashStyle' => '',
'endArrow' => '',
'endConnection' => [
'connectedObjectId' => '',
'connectionSiteIndex' => 0
],
'lineFill' => [
'solidFill' => [
]
],
'link' => [
],
'startArrow' => '',
'startConnection' => [
],
'weight' => [
]
],
'objectId' => ''
],
'updatePageElementAltText' => [
'description' => '',
'objectId' => '',
'title' => ''
],
'updatePageElementTransform' => [
'applyMode' => '',
'objectId' => '',
'transform' => [
]
],
'updatePageElementsZOrder' => [
'operation' => '',
'pageElementObjectIds' => [
]
],
'updatePageProperties' => [
'fields' => '',
'objectId' => '',
'pageProperties' => [
'colorScheme' => [
'colors' => [
[
'color' => [
],
'type' => ''
]
]
],
'pageBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
],
'stretchedPictureFill' => [
'contentUrl' => '',
'size' => [
]
]
]
]
],
'updateParagraphStyle' => [
'cellLocation' => [
],
'fields' => '',
'objectId' => '',
'style' => [
'alignment' => '',
'direction' => '',
'indentEnd' => [
],
'indentFirstLine' => [
],
'indentStart' => [
],
'lineSpacing' => '',
'spaceAbove' => [
],
'spaceBelow' => [
],
'spacingMode' => ''
],
'textRange' => [
]
],
'updateShapeProperties' => [
'fields' => '',
'objectId' => '',
'shapeProperties' => [
'autofit' => [
'autofitType' => '',
'fontScale' => '',
'lineSpacingReduction' => ''
],
'contentAlignment' => '',
'link' => [
],
'outline' => [
],
'shadow' => [
],
'shapeBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
]
],
'updateSlideProperties' => [
'fields' => '',
'objectId' => '',
'slideProperties' => [
'isSkipped' => null,
'layoutObjectId' => '',
'masterObjectId' => '',
'notesPage' => ''
]
],
'updateSlidesPosition' => [
'insertionIndex' => 0,
'slideObjectIds' => [
]
],
'updateTableBorderProperties' => [
'borderPosition' => '',
'fields' => '',
'objectId' => '',
'tableBorderProperties' => [
'dashStyle' => '',
'tableBorderFill' => [
'solidFill' => [
]
],
'weight' => [
]
],
'tableRange' => [
]
],
'updateTableCellProperties' => [
'fields' => '',
'objectId' => '',
'tableCellProperties' => [
'contentAlignment' => '',
'tableCellBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'tableRange' => [
]
],
'updateTableColumnProperties' => [
'columnIndices' => [
],
'fields' => '',
'objectId' => '',
'tableColumnProperties' => [
'columnWidth' => [
]
]
],
'updateTableRowProperties' => [
'fields' => '',
'objectId' => '',
'rowIndices' => [
],
'tableRowProperties' => [
'minRowHeight' => [
]
]
],
'updateTextStyle' => [
'cellLocation' => [
],
'fields' => '',
'objectId' => '',
'style' => [
'backgroundColor' => [
'opaqueColor' => [
]
],
'baselineOffset' => '',
'bold' => null,
'fontFamily' => '',
'fontSize' => [
],
'foregroundColor' => [
],
'italic' => null,
'link' => [
],
'smallCaps' => null,
'strikethrough' => null,
'underline' => null,
'weightedFontFamily' => [
'fontFamily' => '',
'weight' => 0
]
],
'textRange' => [
]
],
'updateVideoProperties' => [
'fields' => '',
'objectId' => '',
'videoProperties' => [
'autoPlay' => null,
'end' => 0,
'mute' => null,
'outline' => [
],
'start' => 0
]
]
]
],
'writeControl' => [
'requiredRevisionId' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'requests' => [
[
'createImage' => [
'elementProperties' => [
'pageObjectId' => '',
'size' => [
'height' => [
'magnitude' => '',
'unit' => ''
],
'width' => [
]
],
'transform' => [
'scaleX' => '',
'scaleY' => '',
'shearX' => '',
'shearY' => '',
'translateX' => '',
'translateY' => '',
'unit' => ''
]
],
'objectId' => '',
'url' => ''
],
'createLine' => [
'category' => '',
'elementProperties' => [
],
'lineCategory' => '',
'objectId' => ''
],
'createParagraphBullets' => [
'bulletPreset' => '',
'cellLocation' => [
'columnIndex' => 0,
'rowIndex' => 0
],
'objectId' => '',
'textRange' => [
'endIndex' => 0,
'startIndex' => 0,
'type' => ''
]
],
'createShape' => [
'elementProperties' => [
],
'objectId' => '',
'shapeType' => ''
],
'createSheetsChart' => [
'chartId' => 0,
'elementProperties' => [
],
'linkingMode' => '',
'objectId' => '',
'spreadsheetId' => ''
],
'createSlide' => [
'insertionIndex' => 0,
'objectId' => '',
'placeholderIdMappings' => [
[
'layoutPlaceholder' => [
'index' => 0,
'parentObjectId' => '',
'type' => ''
],
'layoutPlaceholderObjectId' => '',
'objectId' => ''
]
],
'slideLayoutReference' => [
'layoutId' => '',
'predefinedLayout' => ''
]
],
'createTable' => [
'columns' => 0,
'elementProperties' => [
],
'objectId' => '',
'rows' => 0
],
'createVideo' => [
'elementProperties' => [
],
'id' => '',
'objectId' => '',
'source' => ''
],
'deleteObject' => [
'objectId' => ''
],
'deleteParagraphBullets' => [
'cellLocation' => [
],
'objectId' => '',
'textRange' => [
]
],
'deleteTableColumn' => [
'cellLocation' => [
],
'tableObjectId' => ''
],
'deleteTableRow' => [
'cellLocation' => [
],
'tableObjectId' => ''
],
'deleteText' => [
'cellLocation' => [
],
'objectId' => '',
'textRange' => [
]
],
'duplicateObject' => [
'objectId' => '',
'objectIds' => [
]
],
'groupObjects' => [
'childrenObjectIds' => [
],
'groupObjectId' => ''
],
'insertTableColumns' => [
'cellLocation' => [
],
'insertRight' => null,
'number' => 0,
'tableObjectId' => ''
],
'insertTableRows' => [
'cellLocation' => [
],
'insertBelow' => null,
'number' => 0,
'tableObjectId' => ''
],
'insertText' => [
'cellLocation' => [
],
'insertionIndex' => 0,
'objectId' => '',
'text' => ''
],
'mergeTableCells' => [
'objectId' => '',
'tableRange' => [
'columnSpan' => 0,
'location' => [
],
'rowSpan' => 0
]
],
'refreshSheetsChart' => [
'objectId' => ''
],
'replaceAllShapesWithImage' => [
'containsText' => [
'matchCase' => null,
'text' => ''
],
'imageReplaceMethod' => '',
'imageUrl' => '',
'pageObjectIds' => [
],
'replaceMethod' => ''
],
'replaceAllShapesWithSheetsChart' => [
'chartId' => 0,
'containsText' => [
],
'linkingMode' => '',
'pageObjectIds' => [
],
'spreadsheetId' => ''
],
'replaceAllText' => [
'containsText' => [
],
'pageObjectIds' => [
],
'replaceText' => ''
],
'replaceImage' => [
'imageObjectId' => '',
'imageReplaceMethod' => '',
'url' => ''
],
'rerouteLine' => [
'objectId' => ''
],
'ungroupObjects' => [
'objectIds' => [
]
],
'unmergeTableCells' => [
'objectId' => '',
'tableRange' => [
]
],
'updateImageProperties' => [
'fields' => '',
'imageProperties' => [
'brightness' => '',
'contrast' => '',
'cropProperties' => [
'angle' => '',
'bottomOffset' => '',
'leftOffset' => '',
'rightOffset' => '',
'topOffset' => ''
],
'link' => [
'pageObjectId' => '',
'relativeLink' => '',
'slideIndex' => 0,
'url' => ''
],
'outline' => [
'dashStyle' => '',
'outlineFill' => [
'solidFill' => [
'alpha' => '',
'color' => [
'rgbColor' => [
'blue' => '',
'green' => '',
'red' => ''
],
'themeColor' => ''
]
]
],
'propertyState' => '',
'weight' => [
]
],
'recolor' => [
'name' => '',
'recolorStops' => [
[
'alpha' => '',
'color' => [
],
'position' => ''
]
]
],
'shadow' => [
'alignment' => '',
'alpha' => '',
'blurRadius' => [
],
'color' => [
],
'propertyState' => '',
'rotateWithShape' => null,
'transform' => [
],
'type' => ''
],
'transparency' => ''
],
'objectId' => ''
],
'updateLineCategory' => [
'lineCategory' => '',
'objectId' => ''
],
'updateLineProperties' => [
'fields' => '',
'lineProperties' => [
'dashStyle' => '',
'endArrow' => '',
'endConnection' => [
'connectedObjectId' => '',
'connectionSiteIndex' => 0
],
'lineFill' => [
'solidFill' => [
]
],
'link' => [
],
'startArrow' => '',
'startConnection' => [
],
'weight' => [
]
],
'objectId' => ''
],
'updatePageElementAltText' => [
'description' => '',
'objectId' => '',
'title' => ''
],
'updatePageElementTransform' => [
'applyMode' => '',
'objectId' => '',
'transform' => [
]
],
'updatePageElementsZOrder' => [
'operation' => '',
'pageElementObjectIds' => [
]
],
'updatePageProperties' => [
'fields' => '',
'objectId' => '',
'pageProperties' => [
'colorScheme' => [
'colors' => [
[
'color' => [
],
'type' => ''
]
]
],
'pageBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
],
'stretchedPictureFill' => [
'contentUrl' => '',
'size' => [
]
]
]
]
],
'updateParagraphStyle' => [
'cellLocation' => [
],
'fields' => '',
'objectId' => '',
'style' => [
'alignment' => '',
'direction' => '',
'indentEnd' => [
],
'indentFirstLine' => [
],
'indentStart' => [
],
'lineSpacing' => '',
'spaceAbove' => [
],
'spaceBelow' => [
],
'spacingMode' => ''
],
'textRange' => [
]
],
'updateShapeProperties' => [
'fields' => '',
'objectId' => '',
'shapeProperties' => [
'autofit' => [
'autofitType' => '',
'fontScale' => '',
'lineSpacingReduction' => ''
],
'contentAlignment' => '',
'link' => [
],
'outline' => [
],
'shadow' => [
],
'shapeBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
]
],
'updateSlideProperties' => [
'fields' => '',
'objectId' => '',
'slideProperties' => [
'isSkipped' => null,
'layoutObjectId' => '',
'masterObjectId' => '',
'notesPage' => ''
]
],
'updateSlidesPosition' => [
'insertionIndex' => 0,
'slideObjectIds' => [
]
],
'updateTableBorderProperties' => [
'borderPosition' => '',
'fields' => '',
'objectId' => '',
'tableBorderProperties' => [
'dashStyle' => '',
'tableBorderFill' => [
'solidFill' => [
]
],
'weight' => [
]
],
'tableRange' => [
]
],
'updateTableCellProperties' => [
'fields' => '',
'objectId' => '',
'tableCellProperties' => [
'contentAlignment' => '',
'tableCellBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'tableRange' => [
]
],
'updateTableColumnProperties' => [
'columnIndices' => [
],
'fields' => '',
'objectId' => '',
'tableColumnProperties' => [
'columnWidth' => [
]
]
],
'updateTableRowProperties' => [
'fields' => '',
'objectId' => '',
'rowIndices' => [
],
'tableRowProperties' => [
'minRowHeight' => [
]
]
],
'updateTextStyle' => [
'cellLocation' => [
],
'fields' => '',
'objectId' => '',
'style' => [
'backgroundColor' => [
'opaqueColor' => [
]
],
'baselineOffset' => '',
'bold' => null,
'fontFamily' => '',
'fontSize' => [
],
'foregroundColor' => [
],
'italic' => null,
'link' => [
],
'smallCaps' => null,
'strikethrough' => null,
'underline' => null,
'weightedFontFamily' => [
'fontFamily' => '',
'weight' => 0
]
],
'textRange' => [
]
],
'updateVideoProperties' => [
'fields' => '',
'objectId' => '',
'videoProperties' => [
'autoPlay' => null,
'end' => 0,
'mute' => null,
'outline' => [
],
'start' => 0
]
]
]
],
'writeControl' => [
'requiredRevisionId' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/v1/presentations/:presentationId:batchUpdate');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/presentations/:presentationId:batchUpdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/presentations/:presentationId:batchUpdate", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"
payload = {
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": { "objectId": "" },
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": False,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": False,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": { "objectId": "" },
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": False,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": { "objectId": "" },
"ungroupObjects": { "objectIds": [] },
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": { "solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
} },
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": False,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": { "solidFill": {} },
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": { "colors": [
{
"color": {},
"type": ""
}
] },
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": False,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": { "solidFill": {} },
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": { "columnWidth": {} }
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": { "minRowHeight": {} }
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": { "opaqueColor": {} },
"baselineOffset": "",
"bold": False,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": False,
"link": {},
"smallCaps": False,
"strikethrough": False,
"underline": False,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": False,
"end": 0,
"mute": False,
"outline": {},
"start": 0
}
}
}
],
"writeControl": { "requiredRevisionId": "" }
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate"
payload <- "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/presentations/:presentationId:batchUpdate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/presentations/:presentationId:batchUpdate') do |req|
req.body = "{\n \"requests\": [\n {\n \"createImage\": {\n \"elementProperties\": {\n \"pageObjectId\": \"\",\n \"size\": {\n \"height\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n },\n \"width\": {}\n },\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n }\n },\n \"objectId\": \"\",\n \"url\": \"\"\n },\n \"createLine\": {\n \"category\": \"\",\n \"elementProperties\": {},\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"createParagraphBullets\": {\n \"bulletPreset\": \"\",\n \"cellLocation\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"objectId\": \"\",\n \"textRange\": {\n \"endIndex\": 0,\n \"startIndex\": 0,\n \"type\": \"\"\n }\n },\n \"createShape\": {\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"shapeType\": \"\"\n },\n \"createSheetsChart\": {\n \"chartId\": 0,\n \"elementProperties\": {},\n \"linkingMode\": \"\",\n \"objectId\": \"\",\n \"spreadsheetId\": \"\"\n },\n \"createSlide\": {\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"placeholderIdMappings\": [\n {\n \"layoutPlaceholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"layoutPlaceholderObjectId\": \"\",\n \"objectId\": \"\"\n }\n ],\n \"slideLayoutReference\": {\n \"layoutId\": \"\",\n \"predefinedLayout\": \"\"\n }\n },\n \"createTable\": {\n \"columns\": 0,\n \"elementProperties\": {},\n \"objectId\": \"\",\n \"rows\": 0\n },\n \"createVideo\": {\n \"elementProperties\": {},\n \"id\": \"\",\n \"objectId\": \"\",\n \"source\": \"\"\n },\n \"deleteObject\": {\n \"objectId\": \"\"\n },\n \"deleteParagraphBullets\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"deleteTableColumn\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteTableRow\": {\n \"cellLocation\": {},\n \"tableObjectId\": \"\"\n },\n \"deleteText\": {\n \"cellLocation\": {},\n \"objectId\": \"\",\n \"textRange\": {}\n },\n \"duplicateObject\": {\n \"objectId\": \"\",\n \"objectIds\": {}\n },\n \"groupObjects\": {\n \"childrenObjectIds\": [],\n \"groupObjectId\": \"\"\n },\n \"insertTableColumns\": {\n \"cellLocation\": {},\n \"insertRight\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertTableRows\": {\n \"cellLocation\": {},\n \"insertBelow\": false,\n \"number\": 0,\n \"tableObjectId\": \"\"\n },\n \"insertText\": {\n \"cellLocation\": {},\n \"insertionIndex\": 0,\n \"objectId\": \"\",\n \"text\": \"\"\n },\n \"mergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0\n }\n },\n \"refreshSheetsChart\": {\n \"objectId\": \"\"\n },\n \"replaceAllShapesWithImage\": {\n \"containsText\": {\n \"matchCase\": false,\n \"text\": \"\"\n },\n \"imageReplaceMethod\": \"\",\n \"imageUrl\": \"\",\n \"pageObjectIds\": [],\n \"replaceMethod\": \"\"\n },\n \"replaceAllShapesWithSheetsChart\": {\n \"chartId\": 0,\n \"containsText\": {},\n \"linkingMode\": \"\",\n \"pageObjectIds\": [],\n \"spreadsheetId\": \"\"\n },\n \"replaceAllText\": {\n \"containsText\": {},\n \"pageObjectIds\": [],\n \"replaceText\": \"\"\n },\n \"replaceImage\": {\n \"imageObjectId\": \"\",\n \"imageReplaceMethod\": \"\",\n \"url\": \"\"\n },\n \"rerouteLine\": {\n \"objectId\": \"\"\n },\n \"ungroupObjects\": {\n \"objectIds\": []\n },\n \"unmergeTableCells\": {\n \"objectId\": \"\",\n \"tableRange\": {}\n },\n \"updateImageProperties\": {\n \"fields\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {}\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {},\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"objectId\": \"\"\n },\n \"updateLineCategory\": {\n \"lineCategory\": \"\",\n \"objectId\": \"\"\n },\n \"updateLineProperties\": {\n \"fields\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"objectId\": \"\"\n },\n \"updatePageElementAltText\": {\n \"description\": \"\",\n \"objectId\": \"\",\n \"title\": \"\"\n },\n \"updatePageElementTransform\": {\n \"applyMode\": \"\",\n \"objectId\": \"\",\n \"transform\": {}\n },\n \"updatePageElementsZOrder\": {\n \"operation\": \"\",\n \"pageElementObjectIds\": []\n },\n \"updatePageProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n }\n },\n \"updateParagraphStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n },\n \"textRange\": {}\n },\n \"updateShapeProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n }\n },\n \"updateSlideProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n },\n \"updateSlidesPosition\": {\n \"insertionIndex\": 0,\n \"slideObjectIds\": []\n },\n \"updateTableBorderProperties\": {\n \"borderPosition\": \"\",\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n },\n \"tableRange\": {}\n },\n \"updateTableCellProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"tableRange\": {}\n },\n \"updateTableColumnProperties\": {\n \"columnIndices\": [],\n \"fields\": \"\",\n \"objectId\": \"\",\n \"tableColumnProperties\": {\n \"columnWidth\": {}\n }\n },\n \"updateTableRowProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"rowIndices\": [],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n },\n \"updateTextStyle\": {\n \"cellLocation\": {},\n \"fields\": \"\",\n \"objectId\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"textRange\": {}\n },\n \"updateVideoProperties\": {\n \"fields\": \"\",\n \"objectId\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n }\n }\n ],\n \"writeControl\": {\n \"requiredRevisionId\": \"\"\n }\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate";
let payload = json!({
"requests": (
json!({
"createImage": json!({
"elementProperties": json!({
"pageObjectId": "",
"size": json!({
"height": json!({
"magnitude": "",
"unit": ""
}),
"width": json!({})
}),
"transform": json!({
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
})
}),
"objectId": "",
"url": ""
}),
"createLine": json!({
"category": "",
"elementProperties": json!({}),
"lineCategory": "",
"objectId": ""
}),
"createParagraphBullets": json!({
"bulletPreset": "",
"cellLocation": json!({
"columnIndex": 0,
"rowIndex": 0
}),
"objectId": "",
"textRange": json!({
"endIndex": 0,
"startIndex": 0,
"type": ""
})
}),
"createShape": json!({
"elementProperties": json!({}),
"objectId": "",
"shapeType": ""
}),
"createSheetsChart": json!({
"chartId": 0,
"elementProperties": json!({}),
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
}),
"createSlide": json!({
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": (
json!({
"layoutPlaceholder": json!({
"index": 0,
"parentObjectId": "",
"type": ""
}),
"layoutPlaceholderObjectId": "",
"objectId": ""
})
),
"slideLayoutReference": json!({
"layoutId": "",
"predefinedLayout": ""
})
}),
"createTable": json!({
"columns": 0,
"elementProperties": json!({}),
"objectId": "",
"rows": 0
}),
"createVideo": json!({
"elementProperties": json!({}),
"id": "",
"objectId": "",
"source": ""
}),
"deleteObject": json!({"objectId": ""}),
"deleteParagraphBullets": json!({
"cellLocation": json!({}),
"objectId": "",
"textRange": json!({})
}),
"deleteTableColumn": json!({
"cellLocation": json!({}),
"tableObjectId": ""
}),
"deleteTableRow": json!({
"cellLocation": json!({}),
"tableObjectId": ""
}),
"deleteText": json!({
"cellLocation": json!({}),
"objectId": "",
"textRange": json!({})
}),
"duplicateObject": json!({
"objectId": "",
"objectIds": json!({})
}),
"groupObjects": json!({
"childrenObjectIds": (),
"groupObjectId": ""
}),
"insertTableColumns": json!({
"cellLocation": json!({}),
"insertRight": false,
"number": 0,
"tableObjectId": ""
}),
"insertTableRows": json!({
"cellLocation": json!({}),
"insertBelow": false,
"number": 0,
"tableObjectId": ""
}),
"insertText": json!({
"cellLocation": json!({}),
"insertionIndex": 0,
"objectId": "",
"text": ""
}),
"mergeTableCells": json!({
"objectId": "",
"tableRange": json!({
"columnSpan": 0,
"location": json!({}),
"rowSpan": 0
})
}),
"refreshSheetsChart": json!({"objectId": ""}),
"replaceAllShapesWithImage": json!({
"containsText": json!({
"matchCase": false,
"text": ""
}),
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": (),
"replaceMethod": ""
}),
"replaceAllShapesWithSheetsChart": json!({
"chartId": 0,
"containsText": json!({}),
"linkingMode": "",
"pageObjectIds": (),
"spreadsheetId": ""
}),
"replaceAllText": json!({
"containsText": json!({}),
"pageObjectIds": (),
"replaceText": ""
}),
"replaceImage": json!({
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
}),
"rerouteLine": json!({"objectId": ""}),
"ungroupObjects": json!({"objectIds": ()}),
"unmergeTableCells": json!({
"objectId": "",
"tableRange": json!({})
}),
"updateImageProperties": json!({
"fields": "",
"imageProperties": json!({
"brightness": "",
"contrast": "",
"cropProperties": json!({
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
}),
"link": json!({
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
}),
"outline": json!({
"dashStyle": "",
"outlineFill": json!({"solidFill": json!({
"alpha": "",
"color": json!({
"rgbColor": json!({
"blue": "",
"green": "",
"red": ""
}),
"themeColor": ""
})
})}),
"propertyState": "",
"weight": json!({})
}),
"recolor": json!({
"name": "",
"recolorStops": (
json!({
"alpha": "",
"color": json!({}),
"position": ""
})
)
}),
"shadow": json!({
"alignment": "",
"alpha": "",
"blurRadius": json!({}),
"color": json!({}),
"propertyState": "",
"rotateWithShape": false,
"transform": json!({}),
"type": ""
}),
"transparency": ""
}),
"objectId": ""
}),
"updateLineCategory": json!({
"lineCategory": "",
"objectId": ""
}),
"updateLineProperties": json!({
"fields": "",
"lineProperties": json!({
"dashStyle": "",
"endArrow": "",
"endConnection": json!({
"connectedObjectId": "",
"connectionSiteIndex": 0
}),
"lineFill": json!({"solidFill": json!({})}),
"link": json!({}),
"startArrow": "",
"startConnection": json!({}),
"weight": json!({})
}),
"objectId": ""
}),
"updatePageElementAltText": json!({
"description": "",
"objectId": "",
"title": ""
}),
"updatePageElementTransform": json!({
"applyMode": "",
"objectId": "",
"transform": json!({})
}),
"updatePageElementsZOrder": json!({
"operation": "",
"pageElementObjectIds": ()
}),
"updatePageProperties": json!({
"fields": "",
"objectId": "",
"pageProperties": json!({
"colorScheme": json!({"colors": (
json!({
"color": json!({}),
"type": ""
})
)}),
"pageBackgroundFill": json!({
"propertyState": "",
"solidFill": json!({}),
"stretchedPictureFill": json!({
"contentUrl": "",
"size": json!({})
})
})
})
}),
"updateParagraphStyle": json!({
"cellLocation": json!({}),
"fields": "",
"objectId": "",
"style": json!({
"alignment": "",
"direction": "",
"indentEnd": json!({}),
"indentFirstLine": json!({}),
"indentStart": json!({}),
"lineSpacing": "",
"spaceAbove": json!({}),
"spaceBelow": json!({}),
"spacingMode": ""
}),
"textRange": json!({})
}),
"updateShapeProperties": json!({
"fields": "",
"objectId": "",
"shapeProperties": json!({
"autofit": json!({
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
}),
"contentAlignment": "",
"link": json!({}),
"outline": json!({}),
"shadow": json!({}),
"shapeBackgroundFill": json!({
"propertyState": "",
"solidFill": json!({})
})
})
}),
"updateSlideProperties": json!({
"fields": "",
"objectId": "",
"slideProperties": json!({
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
})
}),
"updateSlidesPosition": json!({
"insertionIndex": 0,
"slideObjectIds": ()
}),
"updateTableBorderProperties": json!({
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": json!({
"dashStyle": "",
"tableBorderFill": json!({"solidFill": json!({})}),
"weight": json!({})
}),
"tableRange": json!({})
}),
"updateTableCellProperties": json!({
"fields": "",
"objectId": "",
"tableCellProperties": json!({
"contentAlignment": "",
"tableCellBackgroundFill": json!({
"propertyState": "",
"solidFill": json!({})
})
}),
"tableRange": json!({})
}),
"updateTableColumnProperties": json!({
"columnIndices": (),
"fields": "",
"objectId": "",
"tableColumnProperties": json!({"columnWidth": json!({})})
}),
"updateTableRowProperties": json!({
"fields": "",
"objectId": "",
"rowIndices": (),
"tableRowProperties": json!({"minRowHeight": json!({})})
}),
"updateTextStyle": json!({
"cellLocation": json!({}),
"fields": "",
"objectId": "",
"style": json!({
"backgroundColor": json!({"opaqueColor": json!({})}),
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": json!({}),
"foregroundColor": json!({}),
"italic": false,
"link": json!({}),
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": json!({
"fontFamily": "",
"weight": 0
})
}),
"textRange": json!({})
}),
"updateVideoProperties": json!({
"fields": "",
"objectId": "",
"videoProperties": json!({
"autoPlay": false,
"end": 0,
"mute": false,
"outline": json!({}),
"start": 0
})
})
})
),
"writeControl": json!({"requiredRevisionId": ""})
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/presentations/:presentationId:batchUpdate \
--header 'content-type: application/json' \
--data '{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}'
echo '{
"requests": [
{
"createImage": {
"elementProperties": {
"pageObjectId": "",
"size": {
"height": {
"magnitude": "",
"unit": ""
},
"width": {}
},
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}
},
"objectId": "",
"url": ""
},
"createLine": {
"category": "",
"elementProperties": {},
"lineCategory": "",
"objectId": ""
},
"createParagraphBullets": {
"bulletPreset": "",
"cellLocation": {
"columnIndex": 0,
"rowIndex": 0
},
"objectId": "",
"textRange": {
"endIndex": 0,
"startIndex": 0,
"type": ""
}
},
"createShape": {
"elementProperties": {},
"objectId": "",
"shapeType": ""
},
"createSheetsChart": {
"chartId": 0,
"elementProperties": {},
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
},
"createSlide": {
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
{
"layoutPlaceholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"layoutPlaceholderObjectId": "",
"objectId": ""
}
],
"slideLayoutReference": {
"layoutId": "",
"predefinedLayout": ""
}
},
"createTable": {
"columns": 0,
"elementProperties": {},
"objectId": "",
"rows": 0
},
"createVideo": {
"elementProperties": {},
"id": "",
"objectId": "",
"source": ""
},
"deleteObject": {
"objectId": ""
},
"deleteParagraphBullets": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"deleteTableColumn": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteTableRow": {
"cellLocation": {},
"tableObjectId": ""
},
"deleteText": {
"cellLocation": {},
"objectId": "",
"textRange": {}
},
"duplicateObject": {
"objectId": "",
"objectIds": {}
},
"groupObjects": {
"childrenObjectIds": [],
"groupObjectId": ""
},
"insertTableColumns": {
"cellLocation": {},
"insertRight": false,
"number": 0,
"tableObjectId": ""
},
"insertTableRows": {
"cellLocation": {},
"insertBelow": false,
"number": 0,
"tableObjectId": ""
},
"insertText": {
"cellLocation": {},
"insertionIndex": 0,
"objectId": "",
"text": ""
},
"mergeTableCells": {
"objectId": "",
"tableRange": {
"columnSpan": 0,
"location": {},
"rowSpan": 0
}
},
"refreshSheetsChart": {
"objectId": ""
},
"replaceAllShapesWithImage": {
"containsText": {
"matchCase": false,
"text": ""
},
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
},
"replaceAllShapesWithSheetsChart": {
"chartId": 0,
"containsText": {},
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
},
"replaceAllText": {
"containsText": {},
"pageObjectIds": [],
"replaceText": ""
},
"replaceImage": {
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
},
"rerouteLine": {
"objectId": ""
},
"ungroupObjects": {
"objectIds": []
},
"unmergeTableCells": {
"objectId": "",
"tableRange": {}
},
"updateImageProperties": {
"fields": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {},
"type": ""
},
"transparency": ""
},
"objectId": ""
},
"updateLineCategory": {
"lineCategory": "",
"objectId": ""
},
"updateLineProperties": {
"fields": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"objectId": ""
},
"updatePageElementAltText": {
"description": "",
"objectId": "",
"title": ""
},
"updatePageElementTransform": {
"applyMode": "",
"objectId": "",
"transform": {}
},
"updatePageElementsZOrder": {
"operation": "",
"pageElementObjectIds": []
},
"updatePageProperties": {
"fields": "",
"objectId": "",
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
}
},
"updateParagraphStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
},
"textRange": {}
},
"updateShapeProperties": {
"fields": "",
"objectId": "",
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
}
},
"updateSlideProperties": {
"fields": "",
"objectId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
},
"updateSlidesPosition": {
"insertionIndex": 0,
"slideObjectIds": []
},
"updateTableBorderProperties": {
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
},
"tableRange": {}
},
"updateTableCellProperties": {
"fields": "",
"objectId": "",
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"tableRange": {}
},
"updateTableColumnProperties": {
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": {
"columnWidth": {}
}
},
"updateTableRowProperties": {
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": {
"minRowHeight": {}
}
},
"updateTextStyle": {
"cellLocation": {},
"fields": "",
"objectId": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"textRange": {}
},
"updateVideoProperties": {
"fields": "",
"objectId": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
}
}
],
"writeControl": {
"requiredRevisionId": ""
}
}' | \
http POST {{baseUrl}}/v1/presentations/:presentationId:batchUpdate \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "requests": [\n {\n "createImage": {\n "elementProperties": {\n "pageObjectId": "",\n "size": {\n "height": {\n "magnitude": "",\n "unit": ""\n },\n "width": {}\n },\n "transform": {\n "scaleX": "",\n "scaleY": "",\n "shearX": "",\n "shearY": "",\n "translateX": "",\n "translateY": "",\n "unit": ""\n }\n },\n "objectId": "",\n "url": ""\n },\n "createLine": {\n "category": "",\n "elementProperties": {},\n "lineCategory": "",\n "objectId": ""\n },\n "createParagraphBullets": {\n "bulletPreset": "",\n "cellLocation": {\n "columnIndex": 0,\n "rowIndex": 0\n },\n "objectId": "",\n "textRange": {\n "endIndex": 0,\n "startIndex": 0,\n "type": ""\n }\n },\n "createShape": {\n "elementProperties": {},\n "objectId": "",\n "shapeType": ""\n },\n "createSheetsChart": {\n "chartId": 0,\n "elementProperties": {},\n "linkingMode": "",\n "objectId": "",\n "spreadsheetId": ""\n },\n "createSlide": {\n "insertionIndex": 0,\n "objectId": "",\n "placeholderIdMappings": [\n {\n "layoutPlaceholder": {\n "index": 0,\n "parentObjectId": "",\n "type": ""\n },\n "layoutPlaceholderObjectId": "",\n "objectId": ""\n }\n ],\n "slideLayoutReference": {\n "layoutId": "",\n "predefinedLayout": ""\n }\n },\n "createTable": {\n "columns": 0,\n "elementProperties": {},\n "objectId": "",\n "rows": 0\n },\n "createVideo": {\n "elementProperties": {},\n "id": "",\n "objectId": "",\n "source": ""\n },\n "deleteObject": {\n "objectId": ""\n },\n "deleteParagraphBullets": {\n "cellLocation": {},\n "objectId": "",\n "textRange": {}\n },\n "deleteTableColumn": {\n "cellLocation": {},\n "tableObjectId": ""\n },\n "deleteTableRow": {\n "cellLocation": {},\n "tableObjectId": ""\n },\n "deleteText": {\n "cellLocation": {},\n "objectId": "",\n "textRange": {}\n },\n "duplicateObject": {\n "objectId": "",\n "objectIds": {}\n },\n "groupObjects": {\n "childrenObjectIds": [],\n "groupObjectId": ""\n },\n "insertTableColumns": {\n "cellLocation": {},\n "insertRight": false,\n "number": 0,\n "tableObjectId": ""\n },\n "insertTableRows": {\n "cellLocation": {},\n "insertBelow": false,\n "number": 0,\n "tableObjectId": ""\n },\n "insertText": {\n "cellLocation": {},\n "insertionIndex": 0,\n "objectId": "",\n "text": ""\n },\n "mergeTableCells": {\n "objectId": "",\n "tableRange": {\n "columnSpan": 0,\n "location": {},\n "rowSpan": 0\n }\n },\n "refreshSheetsChart": {\n "objectId": ""\n },\n "replaceAllShapesWithImage": {\n "containsText": {\n "matchCase": false,\n "text": ""\n },\n "imageReplaceMethod": "",\n "imageUrl": "",\n "pageObjectIds": [],\n "replaceMethod": ""\n },\n "replaceAllShapesWithSheetsChart": {\n "chartId": 0,\n "containsText": {},\n "linkingMode": "",\n "pageObjectIds": [],\n "spreadsheetId": ""\n },\n "replaceAllText": {\n "containsText": {},\n "pageObjectIds": [],\n "replaceText": ""\n },\n "replaceImage": {\n "imageObjectId": "",\n "imageReplaceMethod": "",\n "url": ""\n },\n "rerouteLine": {\n "objectId": ""\n },\n "ungroupObjects": {\n "objectIds": []\n },\n "unmergeTableCells": {\n "objectId": "",\n "tableRange": {}\n },\n "updateImageProperties": {\n "fields": "",\n "imageProperties": {\n "brightness": "",\n "contrast": "",\n "cropProperties": {\n "angle": "",\n "bottomOffset": "",\n "leftOffset": "",\n "rightOffset": "",\n "topOffset": ""\n },\n "link": {\n "pageObjectId": "",\n "relativeLink": "",\n "slideIndex": 0,\n "url": ""\n },\n "outline": {\n "dashStyle": "",\n "outlineFill": {\n "solidFill": {\n "alpha": "",\n "color": {\n "rgbColor": {\n "blue": "",\n "green": "",\n "red": ""\n },\n "themeColor": ""\n }\n }\n },\n "propertyState": "",\n "weight": {}\n },\n "recolor": {\n "name": "",\n "recolorStops": [\n {\n "alpha": "",\n "color": {},\n "position": ""\n }\n ]\n },\n "shadow": {\n "alignment": "",\n "alpha": "",\n "blurRadius": {},\n "color": {},\n "propertyState": "",\n "rotateWithShape": false,\n "transform": {},\n "type": ""\n },\n "transparency": ""\n },\n "objectId": ""\n },\n "updateLineCategory": {\n "lineCategory": "",\n "objectId": ""\n },\n "updateLineProperties": {\n "fields": "",\n "lineProperties": {\n "dashStyle": "",\n "endArrow": "",\n "endConnection": {\n "connectedObjectId": "",\n "connectionSiteIndex": 0\n },\n "lineFill": {\n "solidFill": {}\n },\n "link": {},\n "startArrow": "",\n "startConnection": {},\n "weight": {}\n },\n "objectId": ""\n },\n "updatePageElementAltText": {\n "description": "",\n "objectId": "",\n "title": ""\n },\n "updatePageElementTransform": {\n "applyMode": "",\n "objectId": "",\n "transform": {}\n },\n "updatePageElementsZOrder": {\n "operation": "",\n "pageElementObjectIds": []\n },\n "updatePageProperties": {\n "fields": "",\n "objectId": "",\n "pageProperties": {\n "colorScheme": {\n "colors": [\n {\n "color": {},\n "type": ""\n }\n ]\n },\n "pageBackgroundFill": {\n "propertyState": "",\n "solidFill": {},\n "stretchedPictureFill": {\n "contentUrl": "",\n "size": {}\n }\n }\n }\n },\n "updateParagraphStyle": {\n "cellLocation": {},\n "fields": "",\n "objectId": "",\n "style": {\n "alignment": "",\n "direction": "",\n "indentEnd": {},\n "indentFirstLine": {},\n "indentStart": {},\n "lineSpacing": "",\n "spaceAbove": {},\n "spaceBelow": {},\n "spacingMode": ""\n },\n "textRange": {}\n },\n "updateShapeProperties": {\n "fields": "",\n "objectId": "",\n "shapeProperties": {\n "autofit": {\n "autofitType": "",\n "fontScale": "",\n "lineSpacingReduction": ""\n },\n "contentAlignment": "",\n "link": {},\n "outline": {},\n "shadow": {},\n "shapeBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n }\n },\n "updateSlideProperties": {\n "fields": "",\n "objectId": "",\n "slideProperties": {\n "isSkipped": false,\n "layoutObjectId": "",\n "masterObjectId": "",\n "notesPage": ""\n }\n },\n "updateSlidesPosition": {\n "insertionIndex": 0,\n "slideObjectIds": []\n },\n "updateTableBorderProperties": {\n "borderPosition": "",\n "fields": "",\n "objectId": "",\n "tableBorderProperties": {\n "dashStyle": "",\n "tableBorderFill": {\n "solidFill": {}\n },\n "weight": {}\n },\n "tableRange": {}\n },\n "updateTableCellProperties": {\n "fields": "",\n "objectId": "",\n "tableCellProperties": {\n "contentAlignment": "",\n "tableCellBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n },\n "tableRange": {}\n },\n "updateTableColumnProperties": {\n "columnIndices": [],\n "fields": "",\n "objectId": "",\n "tableColumnProperties": {\n "columnWidth": {}\n }\n },\n "updateTableRowProperties": {\n "fields": "",\n "objectId": "",\n "rowIndices": [],\n "tableRowProperties": {\n "minRowHeight": {}\n }\n },\n "updateTextStyle": {\n "cellLocation": {},\n "fields": "",\n "objectId": "",\n "style": {\n "backgroundColor": {\n "opaqueColor": {}\n },\n "baselineOffset": "",\n "bold": false,\n "fontFamily": "",\n "fontSize": {},\n "foregroundColor": {},\n "italic": false,\n "link": {},\n "smallCaps": false,\n "strikethrough": false,\n "underline": false,\n "weightedFontFamily": {\n "fontFamily": "",\n "weight": 0\n }\n },\n "textRange": {}\n },\n "updateVideoProperties": {\n "fields": "",\n "objectId": "",\n "videoProperties": {\n "autoPlay": false,\n "end": 0,\n "mute": false,\n "outline": {},\n "start": 0\n }\n }\n }\n ],\n "writeControl": {\n "requiredRevisionId": ""\n }\n}' \
--output-document \
- {{baseUrl}}/v1/presentations/:presentationId:batchUpdate
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"requests": [
[
"createImage": [
"elementProperties": [
"pageObjectId": "",
"size": [
"height": [
"magnitude": "",
"unit": ""
],
"width": []
],
"transform": [
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
]
],
"objectId": "",
"url": ""
],
"createLine": [
"category": "",
"elementProperties": [],
"lineCategory": "",
"objectId": ""
],
"createParagraphBullets": [
"bulletPreset": "",
"cellLocation": [
"columnIndex": 0,
"rowIndex": 0
],
"objectId": "",
"textRange": [
"endIndex": 0,
"startIndex": 0,
"type": ""
]
],
"createShape": [
"elementProperties": [],
"objectId": "",
"shapeType": ""
],
"createSheetsChart": [
"chartId": 0,
"elementProperties": [],
"linkingMode": "",
"objectId": "",
"spreadsheetId": ""
],
"createSlide": [
"insertionIndex": 0,
"objectId": "",
"placeholderIdMappings": [
[
"layoutPlaceholder": [
"index": 0,
"parentObjectId": "",
"type": ""
],
"layoutPlaceholderObjectId": "",
"objectId": ""
]
],
"slideLayoutReference": [
"layoutId": "",
"predefinedLayout": ""
]
],
"createTable": [
"columns": 0,
"elementProperties": [],
"objectId": "",
"rows": 0
],
"createVideo": [
"elementProperties": [],
"id": "",
"objectId": "",
"source": ""
],
"deleteObject": ["objectId": ""],
"deleteParagraphBullets": [
"cellLocation": [],
"objectId": "",
"textRange": []
],
"deleteTableColumn": [
"cellLocation": [],
"tableObjectId": ""
],
"deleteTableRow": [
"cellLocation": [],
"tableObjectId": ""
],
"deleteText": [
"cellLocation": [],
"objectId": "",
"textRange": []
],
"duplicateObject": [
"objectId": "",
"objectIds": []
],
"groupObjects": [
"childrenObjectIds": [],
"groupObjectId": ""
],
"insertTableColumns": [
"cellLocation": [],
"insertRight": false,
"number": 0,
"tableObjectId": ""
],
"insertTableRows": [
"cellLocation": [],
"insertBelow": false,
"number": 0,
"tableObjectId": ""
],
"insertText": [
"cellLocation": [],
"insertionIndex": 0,
"objectId": "",
"text": ""
],
"mergeTableCells": [
"objectId": "",
"tableRange": [
"columnSpan": 0,
"location": [],
"rowSpan": 0
]
],
"refreshSheetsChart": ["objectId": ""],
"replaceAllShapesWithImage": [
"containsText": [
"matchCase": false,
"text": ""
],
"imageReplaceMethod": "",
"imageUrl": "",
"pageObjectIds": [],
"replaceMethod": ""
],
"replaceAllShapesWithSheetsChart": [
"chartId": 0,
"containsText": [],
"linkingMode": "",
"pageObjectIds": [],
"spreadsheetId": ""
],
"replaceAllText": [
"containsText": [],
"pageObjectIds": [],
"replaceText": ""
],
"replaceImage": [
"imageObjectId": "",
"imageReplaceMethod": "",
"url": ""
],
"rerouteLine": ["objectId": ""],
"ungroupObjects": ["objectIds": []],
"unmergeTableCells": [
"objectId": "",
"tableRange": []
],
"updateImageProperties": [
"fields": "",
"imageProperties": [
"brightness": "",
"contrast": "",
"cropProperties": [
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
],
"link": [
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
],
"outline": [
"dashStyle": "",
"outlineFill": ["solidFill": [
"alpha": "",
"color": [
"rgbColor": [
"blue": "",
"green": "",
"red": ""
],
"themeColor": ""
]
]],
"propertyState": "",
"weight": []
],
"recolor": [
"name": "",
"recolorStops": [
[
"alpha": "",
"color": [],
"position": ""
]
]
],
"shadow": [
"alignment": "",
"alpha": "",
"blurRadius": [],
"color": [],
"propertyState": "",
"rotateWithShape": false,
"transform": [],
"type": ""
],
"transparency": ""
],
"objectId": ""
],
"updateLineCategory": [
"lineCategory": "",
"objectId": ""
],
"updateLineProperties": [
"fields": "",
"lineProperties": [
"dashStyle": "",
"endArrow": "",
"endConnection": [
"connectedObjectId": "",
"connectionSiteIndex": 0
],
"lineFill": ["solidFill": []],
"link": [],
"startArrow": "",
"startConnection": [],
"weight": []
],
"objectId": ""
],
"updatePageElementAltText": [
"description": "",
"objectId": "",
"title": ""
],
"updatePageElementTransform": [
"applyMode": "",
"objectId": "",
"transform": []
],
"updatePageElementsZOrder": [
"operation": "",
"pageElementObjectIds": []
],
"updatePageProperties": [
"fields": "",
"objectId": "",
"pageProperties": [
"colorScheme": ["colors": [
[
"color": [],
"type": ""
]
]],
"pageBackgroundFill": [
"propertyState": "",
"solidFill": [],
"stretchedPictureFill": [
"contentUrl": "",
"size": []
]
]
]
],
"updateParagraphStyle": [
"cellLocation": [],
"fields": "",
"objectId": "",
"style": [
"alignment": "",
"direction": "",
"indentEnd": [],
"indentFirstLine": [],
"indentStart": [],
"lineSpacing": "",
"spaceAbove": [],
"spaceBelow": [],
"spacingMode": ""
],
"textRange": []
],
"updateShapeProperties": [
"fields": "",
"objectId": "",
"shapeProperties": [
"autofit": [
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
],
"contentAlignment": "",
"link": [],
"outline": [],
"shadow": [],
"shapeBackgroundFill": [
"propertyState": "",
"solidFill": []
]
]
],
"updateSlideProperties": [
"fields": "",
"objectId": "",
"slideProperties": [
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
]
],
"updateSlidesPosition": [
"insertionIndex": 0,
"slideObjectIds": []
],
"updateTableBorderProperties": [
"borderPosition": "",
"fields": "",
"objectId": "",
"tableBorderProperties": [
"dashStyle": "",
"tableBorderFill": ["solidFill": []],
"weight": []
],
"tableRange": []
],
"updateTableCellProperties": [
"fields": "",
"objectId": "",
"tableCellProperties": [
"contentAlignment": "",
"tableCellBackgroundFill": [
"propertyState": "",
"solidFill": []
]
],
"tableRange": []
],
"updateTableColumnProperties": [
"columnIndices": [],
"fields": "",
"objectId": "",
"tableColumnProperties": ["columnWidth": []]
],
"updateTableRowProperties": [
"fields": "",
"objectId": "",
"rowIndices": [],
"tableRowProperties": ["minRowHeight": []]
],
"updateTextStyle": [
"cellLocation": [],
"fields": "",
"objectId": "",
"style": [
"backgroundColor": ["opaqueColor": []],
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": [],
"foregroundColor": [],
"italic": false,
"link": [],
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": [
"fontFamily": "",
"weight": 0
]
],
"textRange": []
],
"updateVideoProperties": [
"fields": "",
"objectId": "",
"videoProperties": [
"autoPlay": false,
"end": 0,
"mute": false,
"outline": [],
"start": 0
]
]
]
],
"writeControl": ["requiredRevisionId": ""]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/presentations/:presentationId:batchUpdate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
slides.presentations.create
{{baseUrl}}/v1/presentations
BODY json
{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/presentations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/presentations" {:content-type :json
:form-params {:layouts [{:layoutProperties {:displayName ""
:masterObjectId ""
:name ""}
:masterProperties {:displayName ""}
:notesProperties {:speakerNotesObjectId ""}
:objectId ""
:pageElements [{:description ""
:elementGroup {:children []}
:image {:contentUrl ""
:imageProperties {:brightness ""
:contrast ""
:cropProperties {:angle ""
:bottomOffset ""
:leftOffset ""
:rightOffset ""
:topOffset ""}
:link {:pageObjectId ""
:relativeLink ""
:slideIndex 0
:url ""}
:outline {:dashStyle ""
:outlineFill {:solidFill {:alpha ""
:color {:rgbColor {:blue ""
:green ""
:red ""}
:themeColor ""}}}
:propertyState ""
:weight {:magnitude ""
:unit ""}}
:recolor {:name ""
:recolorStops [{:alpha ""
:color {}
:position ""}]}
:shadow {:alignment ""
:alpha ""
:blurRadius {}
:color {}
:propertyState ""
:rotateWithShape false
:transform {:scaleX ""
:scaleY ""
:shearX ""
:shearY ""
:translateX ""
:translateY ""
:unit ""}
:type ""}
:transparency ""}
:placeholder {:index 0
:parentObjectId ""
:type ""}
:sourceUrl ""}
:line {:lineCategory ""
:lineProperties {:dashStyle ""
:endArrow ""
:endConnection {:connectedObjectId ""
:connectionSiteIndex 0}
:lineFill {:solidFill {}}
:link {}
:startArrow ""
:startConnection {}
:weight {}}
:lineType ""}
:objectId ""
:shape {:placeholder {}
:shapeProperties {:autofit {:autofitType ""
:fontScale ""
:lineSpacingReduction ""}
:contentAlignment ""
:link {}
:outline {}
:shadow {}
:shapeBackgroundFill {:propertyState ""
:solidFill {}}}
:shapeType ""
:text {:lists {}
:textElements [{:autoText {:content ""
:style {:backgroundColor {:opaqueColor {}}
:baselineOffset ""
:bold false
:fontFamily ""
:fontSize {}
:foregroundColor {}
:italic false
:link {}
:smallCaps false
:strikethrough false
:underline false
:weightedFontFamily {:fontFamily ""
:weight 0}}
:type ""}
:endIndex 0
:paragraphMarker {:bullet {:bulletStyle {}
:glyph ""
:listId ""
:nestingLevel 0}
:style {:alignment ""
:direction ""
:indentEnd {}
:indentFirstLine {}
:indentStart {}
:lineSpacing ""
:spaceAbove {}
:spaceBelow {}
:spacingMode ""}}
:startIndex 0
:textRun {:content ""
:style {}}}]}}
:sheetsChart {:chartId 0
:contentUrl ""
:sheetsChartProperties {:chartImageProperties {}}
:spreadsheetId ""}
:size {:height {}
:width {}}
:table {:columns 0
:horizontalBorderRows [{:tableBorderCells [{:location {:columnIndex 0
:rowIndex 0}
:tableBorderProperties {:dashStyle ""
:tableBorderFill {:solidFill {}}
:weight {}}}]}]
:rows 0
:tableColumns [{:columnWidth {}}]
:tableRows [{:rowHeight {}
:tableCells [{:columnSpan 0
:location {}
:rowSpan 0
:tableCellProperties {:contentAlignment ""
:tableCellBackgroundFill {:propertyState ""
:solidFill {}}}
:text {}}]
:tableRowProperties {:minRowHeight {}}}]
:verticalBorderRows [{}]}
:title ""
:transform {}
:video {:id ""
:source ""
:url ""
:videoProperties {:autoPlay false
:end 0
:mute false
:outline {}
:start 0}}
:wordArt {:renderedText ""}}]
:pageProperties {:colorScheme {:colors [{:color {}
:type ""}]}
:pageBackgroundFill {:propertyState ""
:solidFill {}
:stretchedPictureFill {:contentUrl ""
:size {}}}}
:pageType ""
:revisionId ""
:slideProperties {:isSkipped false
:layoutObjectId ""
:masterObjectId ""
:notesPage ""}}]
:locale ""
:masters [{}]
:notesMaster {}
:pageSize {}
:presentationId ""
:revisionId ""
:slides [{}]
:title ""}})
require "http/client"
url = "{{baseUrl}}/v1/presentations"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/presentations"),
Content = new StringContent("{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/presentations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/presentations"
payload := strings.NewReader("{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/presentations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8593
{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/presentations")
.setHeader("content-type", "application/json")
.setBody("{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/presentations"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/presentations")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/presentations")
.header("content-type", "application/json")
.body("{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}")
.asString();
const data = JSON.stringify({
layouts: [
{
layoutProperties: {
displayName: '',
masterObjectId: '',
name: ''
},
masterProperties: {
displayName: ''
},
notesProperties: {
speakerNotesObjectId: ''
},
objectId: '',
pageElements: [
{
description: '',
elementGroup: {
children: []
},
image: {
contentUrl: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {
angle: '',
bottomOffset: '',
leftOffset: '',
rightOffset: '',
topOffset: ''
},
link: {
pageObjectId: '',
relativeLink: '',
slideIndex: 0,
url: ''
},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {
alpha: '',
color: {
rgbColor: {
blue: '',
green: '',
red: ''
},
themeColor: ''
}
}
},
propertyState: '',
weight: {
magnitude: '',
unit: ''
}
},
recolor: {
name: '',
recolorStops: [
{
alpha: '',
color: {},
position: ''
}
]
},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
},
type: ''
},
transparency: ''
},
placeholder: {
index: 0,
parentObjectId: '',
type: ''
},
sourceUrl: ''
},
line: {
lineCategory: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {
connectedObjectId: '',
connectionSiteIndex: 0
},
lineFill: {
solidFill: {}
},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
lineType: ''
},
objectId: '',
shape: {
placeholder: {},
shapeProperties: {
autofit: {
autofitType: '',
fontScale: '',
lineSpacingReduction: ''
},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {
propertyState: '',
solidFill: {}
}
},
shapeType: '',
text: {
lists: {},
textElements: [
{
autoText: {
content: '',
style: {
backgroundColor: {
opaqueColor: {}
},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {
fontFamily: '',
weight: 0
}
},
type: ''
},
endIndex: 0,
paragraphMarker: {
bullet: {
bulletStyle: {},
glyph: '',
listId: '',
nestingLevel: 0
},
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
}
},
startIndex: 0,
textRun: {
content: '',
style: {}
}
}
]
}
},
sheetsChart: {
chartId: 0,
contentUrl: '',
sheetsChartProperties: {
chartImageProperties: {}
},
spreadsheetId: ''
},
size: {
height: {},
width: {}
},
table: {
columns: 0,
horizontalBorderRows: [
{
tableBorderCells: [
{
location: {
columnIndex: 0,
rowIndex: 0
},
tableBorderProperties: {
dashStyle: '',
tableBorderFill: {
solidFill: {}
},
weight: {}
}
}
]
}
],
rows: 0,
tableColumns: [
{
columnWidth: {}
}
],
tableRows: [
{
rowHeight: {},
tableCells: [
{
columnSpan: 0,
location: {},
rowSpan: 0,
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {
propertyState: '',
solidFill: {}
}
},
text: {}
}
],
tableRowProperties: {
minRowHeight: {}
}
}
],
verticalBorderRows: [
{}
]
},
title: '',
transform: {},
video: {
id: '',
source: '',
url: '',
videoProperties: {
autoPlay: false,
end: 0,
mute: false,
outline: {},
start: 0
}
},
wordArt: {
renderedText: ''
}
}
],
pageProperties: {
colorScheme: {
colors: [
{
color: {},
type: ''
}
]
},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {
contentUrl: '',
size: {}
}
}
},
pageType: '',
revisionId: '',
slideProperties: {
isSkipped: false,
layoutObjectId: '',
masterObjectId: '',
notesPage: ''
}
}
],
locale: '',
masters: [
{}
],
notesMaster: {},
pageSize: {},
presentationId: '',
revisionId: '',
slides: [
{}
],
title: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/presentations');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/presentations',
headers: {'content-type': 'application/json'},
data: {
layouts: [
{
layoutProperties: {displayName: '', masterObjectId: '', name: ''},
masterProperties: {displayName: ''},
notesProperties: {speakerNotesObjectId: ''},
objectId: '',
pageElements: [
{
description: '',
elementGroup: {children: []},
image: {
contentUrl: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {magnitude: '', unit: ''}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
},
type: ''
},
transparency: ''
},
placeholder: {index: 0, parentObjectId: '', type: ''},
sourceUrl: ''
},
line: {
lineCategory: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
lineType: ''
},
objectId: '',
shape: {
placeholder: {},
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
},
shapeType: '',
text: {
lists: {},
textElements: [
{
autoText: {
content: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
type: ''
},
endIndex: 0,
paragraphMarker: {
bullet: {bulletStyle: {}, glyph: '', listId: '', nestingLevel: 0},
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
}
},
startIndex: 0,
textRun: {content: '', style: {}}
}
]
}
},
sheetsChart: {
chartId: 0,
contentUrl: '',
sheetsChartProperties: {chartImageProperties: {}},
spreadsheetId: ''
},
size: {height: {}, width: {}},
table: {
columns: 0,
horizontalBorderRows: [
{
tableBorderCells: [
{
location: {columnIndex: 0, rowIndex: 0},
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}}
}
]
}
],
rows: 0,
tableColumns: [{columnWidth: {}}],
tableRows: [
{
rowHeight: {},
tableCells: [
{
columnSpan: 0,
location: {},
rowSpan: 0,
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
text: {}
}
],
tableRowProperties: {minRowHeight: {}}
}
],
verticalBorderRows: [{}]
},
title: '',
transform: {},
video: {
id: '',
source: '',
url: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
},
wordArt: {renderedText: ''}
}
],
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
},
pageType: '',
revisionId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
}
],
locale: '',
masters: [{}],
notesMaster: {},
pageSize: {},
presentationId: '',
revisionId: '',
slides: [{}],
title: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/presentations';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"layouts":[{"layoutProperties":{"displayName":"","masterObjectId":"","name":""},"masterProperties":{"displayName":""},"notesProperties":{"speakerNotesObjectId":""},"objectId":"","pageElements":[{"description":"","elementGroup":{"children":[]},"image":{"contentUrl":"","imageProperties":{"brightness":"","contrast":"","cropProperties":{"angle":"","bottomOffset":"","leftOffset":"","rightOffset":"","topOffset":""},"link":{"pageObjectId":"","relativeLink":"","slideIndex":0,"url":""},"outline":{"dashStyle":"","outlineFill":{"solidFill":{"alpha":"","color":{"rgbColor":{"blue":"","green":"","red":""},"themeColor":""}}},"propertyState":"","weight":{"magnitude":"","unit":""}},"recolor":{"name":"","recolorStops":[{"alpha":"","color":{},"position":""}]},"shadow":{"alignment":"","alpha":"","blurRadius":{},"color":{},"propertyState":"","rotateWithShape":false,"transform":{"scaleX":"","scaleY":"","shearX":"","shearY":"","translateX":"","translateY":"","unit":""},"type":""},"transparency":""},"placeholder":{"index":0,"parentObjectId":"","type":""},"sourceUrl":""},"line":{"lineCategory":"","lineProperties":{"dashStyle":"","endArrow":"","endConnection":{"connectedObjectId":"","connectionSiteIndex":0},"lineFill":{"solidFill":{}},"link":{},"startArrow":"","startConnection":{},"weight":{}},"lineType":""},"objectId":"","shape":{"placeholder":{},"shapeProperties":{"autofit":{"autofitType":"","fontScale":"","lineSpacingReduction":""},"contentAlignment":"","link":{},"outline":{},"shadow":{},"shapeBackgroundFill":{"propertyState":"","solidFill":{}}},"shapeType":"","text":{"lists":{},"textElements":[{"autoText":{"content":"","style":{"backgroundColor":{"opaqueColor":{}},"baselineOffset":"","bold":false,"fontFamily":"","fontSize":{},"foregroundColor":{},"italic":false,"link":{},"smallCaps":false,"strikethrough":false,"underline":false,"weightedFontFamily":{"fontFamily":"","weight":0}},"type":""},"endIndex":0,"paragraphMarker":{"bullet":{"bulletStyle":{},"glyph":"","listId":"","nestingLevel":0},"style":{"alignment":"","direction":"","indentEnd":{},"indentFirstLine":{},"indentStart":{},"lineSpacing":"","spaceAbove":{},"spaceBelow":{},"spacingMode":""}},"startIndex":0,"textRun":{"content":"","style":{}}}]}},"sheetsChart":{"chartId":0,"contentUrl":"","sheetsChartProperties":{"chartImageProperties":{}},"spreadsheetId":""},"size":{"height":{},"width":{}},"table":{"columns":0,"horizontalBorderRows":[{"tableBorderCells":[{"location":{"columnIndex":0,"rowIndex":0},"tableBorderProperties":{"dashStyle":"","tableBorderFill":{"solidFill":{}},"weight":{}}}]}],"rows":0,"tableColumns":[{"columnWidth":{}}],"tableRows":[{"rowHeight":{},"tableCells":[{"columnSpan":0,"location":{},"rowSpan":0,"tableCellProperties":{"contentAlignment":"","tableCellBackgroundFill":{"propertyState":"","solidFill":{}}},"text":{}}],"tableRowProperties":{"minRowHeight":{}}}],"verticalBorderRows":[{}]},"title":"","transform":{},"video":{"id":"","source":"","url":"","videoProperties":{"autoPlay":false,"end":0,"mute":false,"outline":{},"start":0}},"wordArt":{"renderedText":""}}],"pageProperties":{"colorScheme":{"colors":[{"color":{},"type":""}]},"pageBackgroundFill":{"propertyState":"","solidFill":{},"stretchedPictureFill":{"contentUrl":"","size":{}}}},"pageType":"","revisionId":"","slideProperties":{"isSkipped":false,"layoutObjectId":"","masterObjectId":"","notesPage":""}}],"locale":"","masters":[{}],"notesMaster":{},"pageSize":{},"presentationId":"","revisionId":"","slides":[{}],"title":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/presentations',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "layouts": [\n {\n "layoutProperties": {\n "displayName": "",\n "masterObjectId": "",\n "name": ""\n },\n "masterProperties": {\n "displayName": ""\n },\n "notesProperties": {\n "speakerNotesObjectId": ""\n },\n "objectId": "",\n "pageElements": [\n {\n "description": "",\n "elementGroup": {\n "children": []\n },\n "image": {\n "contentUrl": "",\n "imageProperties": {\n "brightness": "",\n "contrast": "",\n "cropProperties": {\n "angle": "",\n "bottomOffset": "",\n "leftOffset": "",\n "rightOffset": "",\n "topOffset": ""\n },\n "link": {\n "pageObjectId": "",\n "relativeLink": "",\n "slideIndex": 0,\n "url": ""\n },\n "outline": {\n "dashStyle": "",\n "outlineFill": {\n "solidFill": {\n "alpha": "",\n "color": {\n "rgbColor": {\n "blue": "",\n "green": "",\n "red": ""\n },\n "themeColor": ""\n }\n }\n },\n "propertyState": "",\n "weight": {\n "magnitude": "",\n "unit": ""\n }\n },\n "recolor": {\n "name": "",\n "recolorStops": [\n {\n "alpha": "",\n "color": {},\n "position": ""\n }\n ]\n },\n "shadow": {\n "alignment": "",\n "alpha": "",\n "blurRadius": {},\n "color": {},\n "propertyState": "",\n "rotateWithShape": false,\n "transform": {\n "scaleX": "",\n "scaleY": "",\n "shearX": "",\n "shearY": "",\n "translateX": "",\n "translateY": "",\n "unit": ""\n },\n "type": ""\n },\n "transparency": ""\n },\n "placeholder": {\n "index": 0,\n "parentObjectId": "",\n "type": ""\n },\n "sourceUrl": ""\n },\n "line": {\n "lineCategory": "",\n "lineProperties": {\n "dashStyle": "",\n "endArrow": "",\n "endConnection": {\n "connectedObjectId": "",\n "connectionSiteIndex": 0\n },\n "lineFill": {\n "solidFill": {}\n },\n "link": {},\n "startArrow": "",\n "startConnection": {},\n "weight": {}\n },\n "lineType": ""\n },\n "objectId": "",\n "shape": {\n "placeholder": {},\n "shapeProperties": {\n "autofit": {\n "autofitType": "",\n "fontScale": "",\n "lineSpacingReduction": ""\n },\n "contentAlignment": "",\n "link": {},\n "outline": {},\n "shadow": {},\n "shapeBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n },\n "shapeType": "",\n "text": {\n "lists": {},\n "textElements": [\n {\n "autoText": {\n "content": "",\n "style": {\n "backgroundColor": {\n "opaqueColor": {}\n },\n "baselineOffset": "",\n "bold": false,\n "fontFamily": "",\n "fontSize": {},\n "foregroundColor": {},\n "italic": false,\n "link": {},\n "smallCaps": false,\n "strikethrough": false,\n "underline": false,\n "weightedFontFamily": {\n "fontFamily": "",\n "weight": 0\n }\n },\n "type": ""\n },\n "endIndex": 0,\n "paragraphMarker": {\n "bullet": {\n "bulletStyle": {},\n "glyph": "",\n "listId": "",\n "nestingLevel": 0\n },\n "style": {\n "alignment": "",\n "direction": "",\n "indentEnd": {},\n "indentFirstLine": {},\n "indentStart": {},\n "lineSpacing": "",\n "spaceAbove": {},\n "spaceBelow": {},\n "spacingMode": ""\n }\n },\n "startIndex": 0,\n "textRun": {\n "content": "",\n "style": {}\n }\n }\n ]\n }\n },\n "sheetsChart": {\n "chartId": 0,\n "contentUrl": "",\n "sheetsChartProperties": {\n "chartImageProperties": {}\n },\n "spreadsheetId": ""\n },\n "size": {\n "height": {},\n "width": {}\n },\n "table": {\n "columns": 0,\n "horizontalBorderRows": [\n {\n "tableBorderCells": [\n {\n "location": {\n "columnIndex": 0,\n "rowIndex": 0\n },\n "tableBorderProperties": {\n "dashStyle": "",\n "tableBorderFill": {\n "solidFill": {}\n },\n "weight": {}\n }\n }\n ]\n }\n ],\n "rows": 0,\n "tableColumns": [\n {\n "columnWidth": {}\n }\n ],\n "tableRows": [\n {\n "rowHeight": {},\n "tableCells": [\n {\n "columnSpan": 0,\n "location": {},\n "rowSpan": 0,\n "tableCellProperties": {\n "contentAlignment": "",\n "tableCellBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n },\n "text": {}\n }\n ],\n "tableRowProperties": {\n "minRowHeight": {}\n }\n }\n ],\n "verticalBorderRows": [\n {}\n ]\n },\n "title": "",\n "transform": {},\n "video": {\n "id": "",\n "source": "",\n "url": "",\n "videoProperties": {\n "autoPlay": false,\n "end": 0,\n "mute": false,\n "outline": {},\n "start": 0\n }\n },\n "wordArt": {\n "renderedText": ""\n }\n }\n ],\n "pageProperties": {\n "colorScheme": {\n "colors": [\n {\n "color": {},\n "type": ""\n }\n ]\n },\n "pageBackgroundFill": {\n "propertyState": "",\n "solidFill": {},\n "stretchedPictureFill": {\n "contentUrl": "",\n "size": {}\n }\n }\n },\n "pageType": "",\n "revisionId": "",\n "slideProperties": {\n "isSkipped": false,\n "layoutObjectId": "",\n "masterObjectId": "",\n "notesPage": ""\n }\n }\n ],\n "locale": "",\n "masters": [\n {}\n ],\n "notesMaster": {},\n "pageSize": {},\n "presentationId": "",\n "revisionId": "",\n "slides": [\n {}\n ],\n "title": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/presentations")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/presentations',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
layouts: [
{
layoutProperties: {displayName: '', masterObjectId: '', name: ''},
masterProperties: {displayName: ''},
notesProperties: {speakerNotesObjectId: ''},
objectId: '',
pageElements: [
{
description: '',
elementGroup: {children: []},
image: {
contentUrl: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {magnitude: '', unit: ''}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
},
type: ''
},
transparency: ''
},
placeholder: {index: 0, parentObjectId: '', type: ''},
sourceUrl: ''
},
line: {
lineCategory: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
lineType: ''
},
objectId: '',
shape: {
placeholder: {},
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
},
shapeType: '',
text: {
lists: {},
textElements: [
{
autoText: {
content: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
type: ''
},
endIndex: 0,
paragraphMarker: {
bullet: {bulletStyle: {}, glyph: '', listId: '', nestingLevel: 0},
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
}
},
startIndex: 0,
textRun: {content: '', style: {}}
}
]
}
},
sheetsChart: {
chartId: 0,
contentUrl: '',
sheetsChartProperties: {chartImageProperties: {}},
spreadsheetId: ''
},
size: {height: {}, width: {}},
table: {
columns: 0,
horizontalBorderRows: [
{
tableBorderCells: [
{
location: {columnIndex: 0, rowIndex: 0},
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}}
}
]
}
],
rows: 0,
tableColumns: [{columnWidth: {}}],
tableRows: [
{
rowHeight: {},
tableCells: [
{
columnSpan: 0,
location: {},
rowSpan: 0,
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
text: {}
}
],
tableRowProperties: {minRowHeight: {}}
}
],
verticalBorderRows: [{}]
},
title: '',
transform: {},
video: {
id: '',
source: '',
url: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
},
wordArt: {renderedText: ''}
}
],
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
},
pageType: '',
revisionId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
}
],
locale: '',
masters: [{}],
notesMaster: {},
pageSize: {},
presentationId: '',
revisionId: '',
slides: [{}],
title: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/presentations',
headers: {'content-type': 'application/json'},
body: {
layouts: [
{
layoutProperties: {displayName: '', masterObjectId: '', name: ''},
masterProperties: {displayName: ''},
notesProperties: {speakerNotesObjectId: ''},
objectId: '',
pageElements: [
{
description: '',
elementGroup: {children: []},
image: {
contentUrl: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {magnitude: '', unit: ''}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
},
type: ''
},
transparency: ''
},
placeholder: {index: 0, parentObjectId: '', type: ''},
sourceUrl: ''
},
line: {
lineCategory: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
lineType: ''
},
objectId: '',
shape: {
placeholder: {},
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
},
shapeType: '',
text: {
lists: {},
textElements: [
{
autoText: {
content: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
type: ''
},
endIndex: 0,
paragraphMarker: {
bullet: {bulletStyle: {}, glyph: '', listId: '', nestingLevel: 0},
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
}
},
startIndex: 0,
textRun: {content: '', style: {}}
}
]
}
},
sheetsChart: {
chartId: 0,
contentUrl: '',
sheetsChartProperties: {chartImageProperties: {}},
spreadsheetId: ''
},
size: {height: {}, width: {}},
table: {
columns: 0,
horizontalBorderRows: [
{
tableBorderCells: [
{
location: {columnIndex: 0, rowIndex: 0},
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}}
}
]
}
],
rows: 0,
tableColumns: [{columnWidth: {}}],
tableRows: [
{
rowHeight: {},
tableCells: [
{
columnSpan: 0,
location: {},
rowSpan: 0,
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
text: {}
}
],
tableRowProperties: {minRowHeight: {}}
}
],
verticalBorderRows: [{}]
},
title: '',
transform: {},
video: {
id: '',
source: '',
url: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
},
wordArt: {renderedText: ''}
}
],
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
},
pageType: '',
revisionId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
}
],
locale: '',
masters: [{}],
notesMaster: {},
pageSize: {},
presentationId: '',
revisionId: '',
slides: [{}],
title: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/presentations');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
layouts: [
{
layoutProperties: {
displayName: '',
masterObjectId: '',
name: ''
},
masterProperties: {
displayName: ''
},
notesProperties: {
speakerNotesObjectId: ''
},
objectId: '',
pageElements: [
{
description: '',
elementGroup: {
children: []
},
image: {
contentUrl: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {
angle: '',
bottomOffset: '',
leftOffset: '',
rightOffset: '',
topOffset: ''
},
link: {
pageObjectId: '',
relativeLink: '',
slideIndex: 0,
url: ''
},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {
alpha: '',
color: {
rgbColor: {
blue: '',
green: '',
red: ''
},
themeColor: ''
}
}
},
propertyState: '',
weight: {
magnitude: '',
unit: ''
}
},
recolor: {
name: '',
recolorStops: [
{
alpha: '',
color: {},
position: ''
}
]
},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
},
type: ''
},
transparency: ''
},
placeholder: {
index: 0,
parentObjectId: '',
type: ''
},
sourceUrl: ''
},
line: {
lineCategory: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {
connectedObjectId: '',
connectionSiteIndex: 0
},
lineFill: {
solidFill: {}
},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
lineType: ''
},
objectId: '',
shape: {
placeholder: {},
shapeProperties: {
autofit: {
autofitType: '',
fontScale: '',
lineSpacingReduction: ''
},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {
propertyState: '',
solidFill: {}
}
},
shapeType: '',
text: {
lists: {},
textElements: [
{
autoText: {
content: '',
style: {
backgroundColor: {
opaqueColor: {}
},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {
fontFamily: '',
weight: 0
}
},
type: ''
},
endIndex: 0,
paragraphMarker: {
bullet: {
bulletStyle: {},
glyph: '',
listId: '',
nestingLevel: 0
},
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
}
},
startIndex: 0,
textRun: {
content: '',
style: {}
}
}
]
}
},
sheetsChart: {
chartId: 0,
contentUrl: '',
sheetsChartProperties: {
chartImageProperties: {}
},
spreadsheetId: ''
},
size: {
height: {},
width: {}
},
table: {
columns: 0,
horizontalBorderRows: [
{
tableBorderCells: [
{
location: {
columnIndex: 0,
rowIndex: 0
},
tableBorderProperties: {
dashStyle: '',
tableBorderFill: {
solidFill: {}
},
weight: {}
}
}
]
}
],
rows: 0,
tableColumns: [
{
columnWidth: {}
}
],
tableRows: [
{
rowHeight: {},
tableCells: [
{
columnSpan: 0,
location: {},
rowSpan: 0,
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {
propertyState: '',
solidFill: {}
}
},
text: {}
}
],
tableRowProperties: {
minRowHeight: {}
}
}
],
verticalBorderRows: [
{}
]
},
title: '',
transform: {},
video: {
id: '',
source: '',
url: '',
videoProperties: {
autoPlay: false,
end: 0,
mute: false,
outline: {},
start: 0
}
},
wordArt: {
renderedText: ''
}
}
],
pageProperties: {
colorScheme: {
colors: [
{
color: {},
type: ''
}
]
},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {
contentUrl: '',
size: {}
}
}
},
pageType: '',
revisionId: '',
slideProperties: {
isSkipped: false,
layoutObjectId: '',
masterObjectId: '',
notesPage: ''
}
}
],
locale: '',
masters: [
{}
],
notesMaster: {},
pageSize: {},
presentationId: '',
revisionId: '',
slides: [
{}
],
title: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/presentations',
headers: {'content-type': 'application/json'},
data: {
layouts: [
{
layoutProperties: {displayName: '', masterObjectId: '', name: ''},
masterProperties: {displayName: ''},
notesProperties: {speakerNotesObjectId: ''},
objectId: '',
pageElements: [
{
description: '',
elementGroup: {children: []},
image: {
contentUrl: '',
imageProperties: {
brightness: '',
contrast: '',
cropProperties: {angle: '', bottomOffset: '', leftOffset: '', rightOffset: '', topOffset: ''},
link: {pageObjectId: '', relativeLink: '', slideIndex: 0, url: ''},
outline: {
dashStyle: '',
outlineFill: {
solidFill: {alpha: '', color: {rgbColor: {blue: '', green: '', red: ''}, themeColor: ''}}
},
propertyState: '',
weight: {magnitude: '', unit: ''}
},
recolor: {name: '', recolorStops: [{alpha: '', color: {}, position: ''}]},
shadow: {
alignment: '',
alpha: '',
blurRadius: {},
color: {},
propertyState: '',
rotateWithShape: false,
transform: {
scaleX: '',
scaleY: '',
shearX: '',
shearY: '',
translateX: '',
translateY: '',
unit: ''
},
type: ''
},
transparency: ''
},
placeholder: {index: 0, parentObjectId: '', type: ''},
sourceUrl: ''
},
line: {
lineCategory: '',
lineProperties: {
dashStyle: '',
endArrow: '',
endConnection: {connectedObjectId: '', connectionSiteIndex: 0},
lineFill: {solidFill: {}},
link: {},
startArrow: '',
startConnection: {},
weight: {}
},
lineType: ''
},
objectId: '',
shape: {
placeholder: {},
shapeProperties: {
autofit: {autofitType: '', fontScale: '', lineSpacingReduction: ''},
contentAlignment: '',
link: {},
outline: {},
shadow: {},
shapeBackgroundFill: {propertyState: '', solidFill: {}}
},
shapeType: '',
text: {
lists: {},
textElements: [
{
autoText: {
content: '',
style: {
backgroundColor: {opaqueColor: {}},
baselineOffset: '',
bold: false,
fontFamily: '',
fontSize: {},
foregroundColor: {},
italic: false,
link: {},
smallCaps: false,
strikethrough: false,
underline: false,
weightedFontFamily: {fontFamily: '', weight: 0}
},
type: ''
},
endIndex: 0,
paragraphMarker: {
bullet: {bulletStyle: {}, glyph: '', listId: '', nestingLevel: 0},
style: {
alignment: '',
direction: '',
indentEnd: {},
indentFirstLine: {},
indentStart: {},
lineSpacing: '',
spaceAbove: {},
spaceBelow: {},
spacingMode: ''
}
},
startIndex: 0,
textRun: {content: '', style: {}}
}
]
}
},
sheetsChart: {
chartId: 0,
contentUrl: '',
sheetsChartProperties: {chartImageProperties: {}},
spreadsheetId: ''
},
size: {height: {}, width: {}},
table: {
columns: 0,
horizontalBorderRows: [
{
tableBorderCells: [
{
location: {columnIndex: 0, rowIndex: 0},
tableBorderProperties: {dashStyle: '', tableBorderFill: {solidFill: {}}, weight: {}}
}
]
}
],
rows: 0,
tableColumns: [{columnWidth: {}}],
tableRows: [
{
rowHeight: {},
tableCells: [
{
columnSpan: 0,
location: {},
rowSpan: 0,
tableCellProperties: {
contentAlignment: '',
tableCellBackgroundFill: {propertyState: '', solidFill: {}}
},
text: {}
}
],
tableRowProperties: {minRowHeight: {}}
}
],
verticalBorderRows: [{}]
},
title: '',
transform: {},
video: {
id: '',
source: '',
url: '',
videoProperties: {autoPlay: false, end: 0, mute: false, outline: {}, start: 0}
},
wordArt: {renderedText: ''}
}
],
pageProperties: {
colorScheme: {colors: [{color: {}, type: ''}]},
pageBackgroundFill: {
propertyState: '',
solidFill: {},
stretchedPictureFill: {contentUrl: '', size: {}}
}
},
pageType: '',
revisionId: '',
slideProperties: {isSkipped: false, layoutObjectId: '', masterObjectId: '', notesPage: ''}
}
],
locale: '',
masters: [{}],
notesMaster: {},
pageSize: {},
presentationId: '',
revisionId: '',
slides: [{}],
title: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/presentations';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"layouts":[{"layoutProperties":{"displayName":"","masterObjectId":"","name":""},"masterProperties":{"displayName":""},"notesProperties":{"speakerNotesObjectId":""},"objectId":"","pageElements":[{"description":"","elementGroup":{"children":[]},"image":{"contentUrl":"","imageProperties":{"brightness":"","contrast":"","cropProperties":{"angle":"","bottomOffset":"","leftOffset":"","rightOffset":"","topOffset":""},"link":{"pageObjectId":"","relativeLink":"","slideIndex":0,"url":""},"outline":{"dashStyle":"","outlineFill":{"solidFill":{"alpha":"","color":{"rgbColor":{"blue":"","green":"","red":""},"themeColor":""}}},"propertyState":"","weight":{"magnitude":"","unit":""}},"recolor":{"name":"","recolorStops":[{"alpha":"","color":{},"position":""}]},"shadow":{"alignment":"","alpha":"","blurRadius":{},"color":{},"propertyState":"","rotateWithShape":false,"transform":{"scaleX":"","scaleY":"","shearX":"","shearY":"","translateX":"","translateY":"","unit":""},"type":""},"transparency":""},"placeholder":{"index":0,"parentObjectId":"","type":""},"sourceUrl":""},"line":{"lineCategory":"","lineProperties":{"dashStyle":"","endArrow":"","endConnection":{"connectedObjectId":"","connectionSiteIndex":0},"lineFill":{"solidFill":{}},"link":{},"startArrow":"","startConnection":{},"weight":{}},"lineType":""},"objectId":"","shape":{"placeholder":{},"shapeProperties":{"autofit":{"autofitType":"","fontScale":"","lineSpacingReduction":""},"contentAlignment":"","link":{},"outline":{},"shadow":{},"shapeBackgroundFill":{"propertyState":"","solidFill":{}}},"shapeType":"","text":{"lists":{},"textElements":[{"autoText":{"content":"","style":{"backgroundColor":{"opaqueColor":{}},"baselineOffset":"","bold":false,"fontFamily":"","fontSize":{},"foregroundColor":{},"italic":false,"link":{},"smallCaps":false,"strikethrough":false,"underline":false,"weightedFontFamily":{"fontFamily":"","weight":0}},"type":""},"endIndex":0,"paragraphMarker":{"bullet":{"bulletStyle":{},"glyph":"","listId":"","nestingLevel":0},"style":{"alignment":"","direction":"","indentEnd":{},"indentFirstLine":{},"indentStart":{},"lineSpacing":"","spaceAbove":{},"spaceBelow":{},"spacingMode":""}},"startIndex":0,"textRun":{"content":"","style":{}}}]}},"sheetsChart":{"chartId":0,"contentUrl":"","sheetsChartProperties":{"chartImageProperties":{}},"spreadsheetId":""},"size":{"height":{},"width":{}},"table":{"columns":0,"horizontalBorderRows":[{"tableBorderCells":[{"location":{"columnIndex":0,"rowIndex":0},"tableBorderProperties":{"dashStyle":"","tableBorderFill":{"solidFill":{}},"weight":{}}}]}],"rows":0,"tableColumns":[{"columnWidth":{}}],"tableRows":[{"rowHeight":{},"tableCells":[{"columnSpan":0,"location":{},"rowSpan":0,"tableCellProperties":{"contentAlignment":"","tableCellBackgroundFill":{"propertyState":"","solidFill":{}}},"text":{}}],"tableRowProperties":{"minRowHeight":{}}}],"verticalBorderRows":[{}]},"title":"","transform":{},"video":{"id":"","source":"","url":"","videoProperties":{"autoPlay":false,"end":0,"mute":false,"outline":{},"start":0}},"wordArt":{"renderedText":""}}],"pageProperties":{"colorScheme":{"colors":[{"color":{},"type":""}]},"pageBackgroundFill":{"propertyState":"","solidFill":{},"stretchedPictureFill":{"contentUrl":"","size":{}}}},"pageType":"","revisionId":"","slideProperties":{"isSkipped":false,"layoutObjectId":"","masterObjectId":"","notesPage":""}}],"locale":"","masters":[{}],"notesMaster":{},"pageSize":{},"presentationId":"","revisionId":"","slides":[{}],"title":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"layouts": @[ @{ @"layoutProperties": @{ @"displayName": @"", @"masterObjectId": @"", @"name": @"" }, @"masterProperties": @{ @"displayName": @"" }, @"notesProperties": @{ @"speakerNotesObjectId": @"" }, @"objectId": @"", @"pageElements": @[ @{ @"description": @"", @"elementGroup": @{ @"children": @[ ] }, @"image": @{ @"contentUrl": @"", @"imageProperties": @{ @"brightness": @"", @"contrast": @"", @"cropProperties": @{ @"angle": @"", @"bottomOffset": @"", @"leftOffset": @"", @"rightOffset": @"", @"topOffset": @"" }, @"link": @{ @"pageObjectId": @"", @"relativeLink": @"", @"slideIndex": @0, @"url": @"" }, @"outline": @{ @"dashStyle": @"", @"outlineFill": @{ @"solidFill": @{ @"alpha": @"", @"color": @{ @"rgbColor": @{ @"blue": @"", @"green": @"", @"red": @"" }, @"themeColor": @"" } } }, @"propertyState": @"", @"weight": @{ @"magnitude": @"", @"unit": @"" } }, @"recolor": @{ @"name": @"", @"recolorStops": @[ @{ @"alpha": @"", @"color": @{ }, @"position": @"" } ] }, @"shadow": @{ @"alignment": @"", @"alpha": @"", @"blurRadius": @{ }, @"color": @{ }, @"propertyState": @"", @"rotateWithShape": @NO, @"transform": @{ @"scaleX": @"", @"scaleY": @"", @"shearX": @"", @"shearY": @"", @"translateX": @"", @"translateY": @"", @"unit": @"" }, @"type": @"" }, @"transparency": @"" }, @"placeholder": @{ @"index": @0, @"parentObjectId": @"", @"type": @"" }, @"sourceUrl": @"" }, @"line": @{ @"lineCategory": @"", @"lineProperties": @{ @"dashStyle": @"", @"endArrow": @"", @"endConnection": @{ @"connectedObjectId": @"", @"connectionSiteIndex": @0 }, @"lineFill": @{ @"solidFill": @{ } }, @"link": @{ }, @"startArrow": @"", @"startConnection": @{ }, @"weight": @{ } }, @"lineType": @"" }, @"objectId": @"", @"shape": @{ @"placeholder": @{ }, @"shapeProperties": @{ @"autofit": @{ @"autofitType": @"", @"fontScale": @"", @"lineSpacingReduction": @"" }, @"contentAlignment": @"", @"link": @{ }, @"outline": @{ }, @"shadow": @{ }, @"shapeBackgroundFill": @{ @"propertyState": @"", @"solidFill": @{ } } }, @"shapeType": @"", @"text": @{ @"lists": @{ }, @"textElements": @[ @{ @"autoText": @{ @"content": @"", @"style": @{ @"backgroundColor": @{ @"opaqueColor": @{ } }, @"baselineOffset": @"", @"bold": @NO, @"fontFamily": @"", @"fontSize": @{ }, @"foregroundColor": @{ }, @"italic": @NO, @"link": @{ }, @"smallCaps": @NO, @"strikethrough": @NO, @"underline": @NO, @"weightedFontFamily": @{ @"fontFamily": @"", @"weight": @0 } }, @"type": @"" }, @"endIndex": @0, @"paragraphMarker": @{ @"bullet": @{ @"bulletStyle": @{ }, @"glyph": @"", @"listId": @"", @"nestingLevel": @0 }, @"style": @{ @"alignment": @"", @"direction": @"", @"indentEnd": @{ }, @"indentFirstLine": @{ }, @"indentStart": @{ }, @"lineSpacing": @"", @"spaceAbove": @{ }, @"spaceBelow": @{ }, @"spacingMode": @"" } }, @"startIndex": @0, @"textRun": @{ @"content": @"", @"style": @{ } } } ] } }, @"sheetsChart": @{ @"chartId": @0, @"contentUrl": @"", @"sheetsChartProperties": @{ @"chartImageProperties": @{ } }, @"spreadsheetId": @"" }, @"size": @{ @"height": @{ }, @"width": @{ } }, @"table": @{ @"columns": @0, @"horizontalBorderRows": @[ @{ @"tableBorderCells": @[ @{ @"location": @{ @"columnIndex": @0, @"rowIndex": @0 }, @"tableBorderProperties": @{ @"dashStyle": @"", @"tableBorderFill": @{ @"solidFill": @{ } }, @"weight": @{ } } } ] } ], @"rows": @0, @"tableColumns": @[ @{ @"columnWidth": @{ } } ], @"tableRows": @[ @{ @"rowHeight": @{ }, @"tableCells": @[ @{ @"columnSpan": @0, @"location": @{ }, @"rowSpan": @0, @"tableCellProperties": @{ @"contentAlignment": @"", @"tableCellBackgroundFill": @{ @"propertyState": @"", @"solidFill": @{ } } }, @"text": @{ } } ], @"tableRowProperties": @{ @"minRowHeight": @{ } } } ], @"verticalBorderRows": @[ @{ } ] }, @"title": @"", @"transform": @{ }, @"video": @{ @"id": @"", @"source": @"", @"url": @"", @"videoProperties": @{ @"autoPlay": @NO, @"end": @0, @"mute": @NO, @"outline": @{ }, @"start": @0 } }, @"wordArt": @{ @"renderedText": @"" } } ], @"pageProperties": @{ @"colorScheme": @{ @"colors": @[ @{ @"color": @{ }, @"type": @"" } ] }, @"pageBackgroundFill": @{ @"propertyState": @"", @"solidFill": @{ }, @"stretchedPictureFill": @{ @"contentUrl": @"", @"size": @{ } } } }, @"pageType": @"", @"revisionId": @"", @"slideProperties": @{ @"isSkipped": @NO, @"layoutObjectId": @"", @"masterObjectId": @"", @"notesPage": @"" } } ],
@"locale": @"",
@"masters": @[ @{ } ],
@"notesMaster": @{ },
@"pageSize": @{ },
@"presentationId": @"",
@"revisionId": @"",
@"slides": @[ @{ } ],
@"title": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/presentations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/presentations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/presentations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'layouts' => [
[
'layoutProperties' => [
'displayName' => '',
'masterObjectId' => '',
'name' => ''
],
'masterProperties' => [
'displayName' => ''
],
'notesProperties' => [
'speakerNotesObjectId' => ''
],
'objectId' => '',
'pageElements' => [
[
'description' => '',
'elementGroup' => [
'children' => [
]
],
'image' => [
'contentUrl' => '',
'imageProperties' => [
'brightness' => '',
'contrast' => '',
'cropProperties' => [
'angle' => '',
'bottomOffset' => '',
'leftOffset' => '',
'rightOffset' => '',
'topOffset' => ''
],
'link' => [
'pageObjectId' => '',
'relativeLink' => '',
'slideIndex' => 0,
'url' => ''
],
'outline' => [
'dashStyle' => '',
'outlineFill' => [
'solidFill' => [
'alpha' => '',
'color' => [
'rgbColor' => [
'blue' => '',
'green' => '',
'red' => ''
],
'themeColor' => ''
]
]
],
'propertyState' => '',
'weight' => [
'magnitude' => '',
'unit' => ''
]
],
'recolor' => [
'name' => '',
'recolorStops' => [
[
'alpha' => '',
'color' => [
],
'position' => ''
]
]
],
'shadow' => [
'alignment' => '',
'alpha' => '',
'blurRadius' => [
],
'color' => [
],
'propertyState' => '',
'rotateWithShape' => null,
'transform' => [
'scaleX' => '',
'scaleY' => '',
'shearX' => '',
'shearY' => '',
'translateX' => '',
'translateY' => '',
'unit' => ''
],
'type' => ''
],
'transparency' => ''
],
'placeholder' => [
'index' => 0,
'parentObjectId' => '',
'type' => ''
],
'sourceUrl' => ''
],
'line' => [
'lineCategory' => '',
'lineProperties' => [
'dashStyle' => '',
'endArrow' => '',
'endConnection' => [
'connectedObjectId' => '',
'connectionSiteIndex' => 0
],
'lineFill' => [
'solidFill' => [
]
],
'link' => [
],
'startArrow' => '',
'startConnection' => [
],
'weight' => [
]
],
'lineType' => ''
],
'objectId' => '',
'shape' => [
'placeholder' => [
],
'shapeProperties' => [
'autofit' => [
'autofitType' => '',
'fontScale' => '',
'lineSpacingReduction' => ''
],
'contentAlignment' => '',
'link' => [
],
'outline' => [
],
'shadow' => [
],
'shapeBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'shapeType' => '',
'text' => [
'lists' => [
],
'textElements' => [
[
'autoText' => [
'content' => '',
'style' => [
'backgroundColor' => [
'opaqueColor' => [
]
],
'baselineOffset' => '',
'bold' => null,
'fontFamily' => '',
'fontSize' => [
],
'foregroundColor' => [
],
'italic' => null,
'link' => [
],
'smallCaps' => null,
'strikethrough' => null,
'underline' => null,
'weightedFontFamily' => [
'fontFamily' => '',
'weight' => 0
]
],
'type' => ''
],
'endIndex' => 0,
'paragraphMarker' => [
'bullet' => [
'bulletStyle' => [
],
'glyph' => '',
'listId' => '',
'nestingLevel' => 0
],
'style' => [
'alignment' => '',
'direction' => '',
'indentEnd' => [
],
'indentFirstLine' => [
],
'indentStart' => [
],
'lineSpacing' => '',
'spaceAbove' => [
],
'spaceBelow' => [
],
'spacingMode' => ''
]
],
'startIndex' => 0,
'textRun' => [
'content' => '',
'style' => [
]
]
]
]
]
],
'sheetsChart' => [
'chartId' => 0,
'contentUrl' => '',
'sheetsChartProperties' => [
'chartImageProperties' => [
]
],
'spreadsheetId' => ''
],
'size' => [
'height' => [
],
'width' => [
]
],
'table' => [
'columns' => 0,
'horizontalBorderRows' => [
[
'tableBorderCells' => [
[
'location' => [
'columnIndex' => 0,
'rowIndex' => 0
],
'tableBorderProperties' => [
'dashStyle' => '',
'tableBorderFill' => [
'solidFill' => [
]
],
'weight' => [
]
]
]
]
]
],
'rows' => 0,
'tableColumns' => [
[
'columnWidth' => [
]
]
],
'tableRows' => [
[
'rowHeight' => [
],
'tableCells' => [
[
'columnSpan' => 0,
'location' => [
],
'rowSpan' => 0,
'tableCellProperties' => [
'contentAlignment' => '',
'tableCellBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'text' => [
]
]
],
'tableRowProperties' => [
'minRowHeight' => [
]
]
]
],
'verticalBorderRows' => [
[
]
]
],
'title' => '',
'transform' => [
],
'video' => [
'id' => '',
'source' => '',
'url' => '',
'videoProperties' => [
'autoPlay' => null,
'end' => 0,
'mute' => null,
'outline' => [
],
'start' => 0
]
],
'wordArt' => [
'renderedText' => ''
]
]
],
'pageProperties' => [
'colorScheme' => [
'colors' => [
[
'color' => [
],
'type' => ''
]
]
],
'pageBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
],
'stretchedPictureFill' => [
'contentUrl' => '',
'size' => [
]
]
]
],
'pageType' => '',
'revisionId' => '',
'slideProperties' => [
'isSkipped' => null,
'layoutObjectId' => '',
'masterObjectId' => '',
'notesPage' => ''
]
]
],
'locale' => '',
'masters' => [
[
]
],
'notesMaster' => [
],
'pageSize' => [
],
'presentationId' => '',
'revisionId' => '',
'slides' => [
[
]
],
'title' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/presentations', [
'body' => '{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/presentations');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'layouts' => [
[
'layoutProperties' => [
'displayName' => '',
'masterObjectId' => '',
'name' => ''
],
'masterProperties' => [
'displayName' => ''
],
'notesProperties' => [
'speakerNotesObjectId' => ''
],
'objectId' => '',
'pageElements' => [
[
'description' => '',
'elementGroup' => [
'children' => [
]
],
'image' => [
'contentUrl' => '',
'imageProperties' => [
'brightness' => '',
'contrast' => '',
'cropProperties' => [
'angle' => '',
'bottomOffset' => '',
'leftOffset' => '',
'rightOffset' => '',
'topOffset' => ''
],
'link' => [
'pageObjectId' => '',
'relativeLink' => '',
'slideIndex' => 0,
'url' => ''
],
'outline' => [
'dashStyle' => '',
'outlineFill' => [
'solidFill' => [
'alpha' => '',
'color' => [
'rgbColor' => [
'blue' => '',
'green' => '',
'red' => ''
],
'themeColor' => ''
]
]
],
'propertyState' => '',
'weight' => [
'magnitude' => '',
'unit' => ''
]
],
'recolor' => [
'name' => '',
'recolorStops' => [
[
'alpha' => '',
'color' => [
],
'position' => ''
]
]
],
'shadow' => [
'alignment' => '',
'alpha' => '',
'blurRadius' => [
],
'color' => [
],
'propertyState' => '',
'rotateWithShape' => null,
'transform' => [
'scaleX' => '',
'scaleY' => '',
'shearX' => '',
'shearY' => '',
'translateX' => '',
'translateY' => '',
'unit' => ''
],
'type' => ''
],
'transparency' => ''
],
'placeholder' => [
'index' => 0,
'parentObjectId' => '',
'type' => ''
],
'sourceUrl' => ''
],
'line' => [
'lineCategory' => '',
'lineProperties' => [
'dashStyle' => '',
'endArrow' => '',
'endConnection' => [
'connectedObjectId' => '',
'connectionSiteIndex' => 0
],
'lineFill' => [
'solidFill' => [
]
],
'link' => [
],
'startArrow' => '',
'startConnection' => [
],
'weight' => [
]
],
'lineType' => ''
],
'objectId' => '',
'shape' => [
'placeholder' => [
],
'shapeProperties' => [
'autofit' => [
'autofitType' => '',
'fontScale' => '',
'lineSpacingReduction' => ''
],
'contentAlignment' => '',
'link' => [
],
'outline' => [
],
'shadow' => [
],
'shapeBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'shapeType' => '',
'text' => [
'lists' => [
],
'textElements' => [
[
'autoText' => [
'content' => '',
'style' => [
'backgroundColor' => [
'opaqueColor' => [
]
],
'baselineOffset' => '',
'bold' => null,
'fontFamily' => '',
'fontSize' => [
],
'foregroundColor' => [
],
'italic' => null,
'link' => [
],
'smallCaps' => null,
'strikethrough' => null,
'underline' => null,
'weightedFontFamily' => [
'fontFamily' => '',
'weight' => 0
]
],
'type' => ''
],
'endIndex' => 0,
'paragraphMarker' => [
'bullet' => [
'bulletStyle' => [
],
'glyph' => '',
'listId' => '',
'nestingLevel' => 0
],
'style' => [
'alignment' => '',
'direction' => '',
'indentEnd' => [
],
'indentFirstLine' => [
],
'indentStart' => [
],
'lineSpacing' => '',
'spaceAbove' => [
],
'spaceBelow' => [
],
'spacingMode' => ''
]
],
'startIndex' => 0,
'textRun' => [
'content' => '',
'style' => [
]
]
]
]
]
],
'sheetsChart' => [
'chartId' => 0,
'contentUrl' => '',
'sheetsChartProperties' => [
'chartImageProperties' => [
]
],
'spreadsheetId' => ''
],
'size' => [
'height' => [
],
'width' => [
]
],
'table' => [
'columns' => 0,
'horizontalBorderRows' => [
[
'tableBorderCells' => [
[
'location' => [
'columnIndex' => 0,
'rowIndex' => 0
],
'tableBorderProperties' => [
'dashStyle' => '',
'tableBorderFill' => [
'solidFill' => [
]
],
'weight' => [
]
]
]
]
]
],
'rows' => 0,
'tableColumns' => [
[
'columnWidth' => [
]
]
],
'tableRows' => [
[
'rowHeight' => [
],
'tableCells' => [
[
'columnSpan' => 0,
'location' => [
],
'rowSpan' => 0,
'tableCellProperties' => [
'contentAlignment' => '',
'tableCellBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'text' => [
]
]
],
'tableRowProperties' => [
'minRowHeight' => [
]
]
]
],
'verticalBorderRows' => [
[
]
]
],
'title' => '',
'transform' => [
],
'video' => [
'id' => '',
'source' => '',
'url' => '',
'videoProperties' => [
'autoPlay' => null,
'end' => 0,
'mute' => null,
'outline' => [
],
'start' => 0
]
],
'wordArt' => [
'renderedText' => ''
]
]
],
'pageProperties' => [
'colorScheme' => [
'colors' => [
[
'color' => [
],
'type' => ''
]
]
],
'pageBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
],
'stretchedPictureFill' => [
'contentUrl' => '',
'size' => [
]
]
]
],
'pageType' => '',
'revisionId' => '',
'slideProperties' => [
'isSkipped' => null,
'layoutObjectId' => '',
'masterObjectId' => '',
'notesPage' => ''
]
]
],
'locale' => '',
'masters' => [
[
]
],
'notesMaster' => [
],
'pageSize' => [
],
'presentationId' => '',
'revisionId' => '',
'slides' => [
[
]
],
'title' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'layouts' => [
[
'layoutProperties' => [
'displayName' => '',
'masterObjectId' => '',
'name' => ''
],
'masterProperties' => [
'displayName' => ''
],
'notesProperties' => [
'speakerNotesObjectId' => ''
],
'objectId' => '',
'pageElements' => [
[
'description' => '',
'elementGroup' => [
'children' => [
]
],
'image' => [
'contentUrl' => '',
'imageProperties' => [
'brightness' => '',
'contrast' => '',
'cropProperties' => [
'angle' => '',
'bottomOffset' => '',
'leftOffset' => '',
'rightOffset' => '',
'topOffset' => ''
],
'link' => [
'pageObjectId' => '',
'relativeLink' => '',
'slideIndex' => 0,
'url' => ''
],
'outline' => [
'dashStyle' => '',
'outlineFill' => [
'solidFill' => [
'alpha' => '',
'color' => [
'rgbColor' => [
'blue' => '',
'green' => '',
'red' => ''
],
'themeColor' => ''
]
]
],
'propertyState' => '',
'weight' => [
'magnitude' => '',
'unit' => ''
]
],
'recolor' => [
'name' => '',
'recolorStops' => [
[
'alpha' => '',
'color' => [
],
'position' => ''
]
]
],
'shadow' => [
'alignment' => '',
'alpha' => '',
'blurRadius' => [
],
'color' => [
],
'propertyState' => '',
'rotateWithShape' => null,
'transform' => [
'scaleX' => '',
'scaleY' => '',
'shearX' => '',
'shearY' => '',
'translateX' => '',
'translateY' => '',
'unit' => ''
],
'type' => ''
],
'transparency' => ''
],
'placeholder' => [
'index' => 0,
'parentObjectId' => '',
'type' => ''
],
'sourceUrl' => ''
],
'line' => [
'lineCategory' => '',
'lineProperties' => [
'dashStyle' => '',
'endArrow' => '',
'endConnection' => [
'connectedObjectId' => '',
'connectionSiteIndex' => 0
],
'lineFill' => [
'solidFill' => [
]
],
'link' => [
],
'startArrow' => '',
'startConnection' => [
],
'weight' => [
]
],
'lineType' => ''
],
'objectId' => '',
'shape' => [
'placeholder' => [
],
'shapeProperties' => [
'autofit' => [
'autofitType' => '',
'fontScale' => '',
'lineSpacingReduction' => ''
],
'contentAlignment' => '',
'link' => [
],
'outline' => [
],
'shadow' => [
],
'shapeBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'shapeType' => '',
'text' => [
'lists' => [
],
'textElements' => [
[
'autoText' => [
'content' => '',
'style' => [
'backgroundColor' => [
'opaqueColor' => [
]
],
'baselineOffset' => '',
'bold' => null,
'fontFamily' => '',
'fontSize' => [
],
'foregroundColor' => [
],
'italic' => null,
'link' => [
],
'smallCaps' => null,
'strikethrough' => null,
'underline' => null,
'weightedFontFamily' => [
'fontFamily' => '',
'weight' => 0
]
],
'type' => ''
],
'endIndex' => 0,
'paragraphMarker' => [
'bullet' => [
'bulletStyle' => [
],
'glyph' => '',
'listId' => '',
'nestingLevel' => 0
],
'style' => [
'alignment' => '',
'direction' => '',
'indentEnd' => [
],
'indentFirstLine' => [
],
'indentStart' => [
],
'lineSpacing' => '',
'spaceAbove' => [
],
'spaceBelow' => [
],
'spacingMode' => ''
]
],
'startIndex' => 0,
'textRun' => [
'content' => '',
'style' => [
]
]
]
]
]
],
'sheetsChart' => [
'chartId' => 0,
'contentUrl' => '',
'sheetsChartProperties' => [
'chartImageProperties' => [
]
],
'spreadsheetId' => ''
],
'size' => [
'height' => [
],
'width' => [
]
],
'table' => [
'columns' => 0,
'horizontalBorderRows' => [
[
'tableBorderCells' => [
[
'location' => [
'columnIndex' => 0,
'rowIndex' => 0
],
'tableBorderProperties' => [
'dashStyle' => '',
'tableBorderFill' => [
'solidFill' => [
]
],
'weight' => [
]
]
]
]
]
],
'rows' => 0,
'tableColumns' => [
[
'columnWidth' => [
]
]
],
'tableRows' => [
[
'rowHeight' => [
],
'tableCells' => [
[
'columnSpan' => 0,
'location' => [
],
'rowSpan' => 0,
'tableCellProperties' => [
'contentAlignment' => '',
'tableCellBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
]
]
],
'text' => [
]
]
],
'tableRowProperties' => [
'minRowHeight' => [
]
]
]
],
'verticalBorderRows' => [
[
]
]
],
'title' => '',
'transform' => [
],
'video' => [
'id' => '',
'source' => '',
'url' => '',
'videoProperties' => [
'autoPlay' => null,
'end' => 0,
'mute' => null,
'outline' => [
],
'start' => 0
]
],
'wordArt' => [
'renderedText' => ''
]
]
],
'pageProperties' => [
'colorScheme' => [
'colors' => [
[
'color' => [
],
'type' => ''
]
]
],
'pageBackgroundFill' => [
'propertyState' => '',
'solidFill' => [
],
'stretchedPictureFill' => [
'contentUrl' => '',
'size' => [
]
]
]
],
'pageType' => '',
'revisionId' => '',
'slideProperties' => [
'isSkipped' => null,
'layoutObjectId' => '',
'masterObjectId' => '',
'notesPage' => ''
]
]
],
'locale' => '',
'masters' => [
[
]
],
'notesMaster' => [
],
'pageSize' => [
],
'presentationId' => '',
'revisionId' => '',
'slides' => [
[
]
],
'title' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/presentations');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/presentations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/presentations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/presentations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/presentations"
payload = {
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": { "displayName": "" },
"notesProperties": { "speakerNotesObjectId": "" },
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": { "children": [] },
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": { "solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
} },
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": False,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": { "solidFill": {} },
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": { "opaqueColor": {} },
"baselineOffset": "",
"bold": False,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": False,
"link": {},
"smallCaps": False,
"strikethrough": False,
"underline": False,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": { "chartImageProperties": {} },
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [{ "tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": { "solidFill": {} },
"weight": {}
}
}
] }],
"rows": 0,
"tableColumns": [{ "columnWidth": {} }],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": { "minRowHeight": {} }
}
],
"verticalBorderRows": [{}]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": False,
"end": 0,
"mute": False,
"outline": {},
"start": 0
}
},
"wordArt": { "renderedText": "" }
}
],
"pageProperties": {
"colorScheme": { "colors": [
{
"color": {},
"type": ""
}
] },
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": False,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [{}],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [{}],
"title": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/presentations"
payload <- "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/presentations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/presentations') do |req|
req.body = "{\n \"layouts\": [\n {\n \"layoutProperties\": {\n \"displayName\": \"\",\n \"masterObjectId\": \"\",\n \"name\": \"\"\n },\n \"masterProperties\": {\n \"displayName\": \"\"\n },\n \"notesProperties\": {\n \"speakerNotesObjectId\": \"\"\n },\n \"objectId\": \"\",\n \"pageElements\": [\n {\n \"description\": \"\",\n \"elementGroup\": {\n \"children\": []\n },\n \"image\": {\n \"contentUrl\": \"\",\n \"imageProperties\": {\n \"brightness\": \"\",\n \"contrast\": \"\",\n \"cropProperties\": {\n \"angle\": \"\",\n \"bottomOffset\": \"\",\n \"leftOffset\": \"\",\n \"rightOffset\": \"\",\n \"topOffset\": \"\"\n },\n \"link\": {\n \"pageObjectId\": \"\",\n \"relativeLink\": \"\",\n \"slideIndex\": 0,\n \"url\": \"\"\n },\n \"outline\": {\n \"dashStyle\": \"\",\n \"outlineFill\": {\n \"solidFill\": {\n \"alpha\": \"\",\n \"color\": {\n \"rgbColor\": {\n \"blue\": \"\",\n \"green\": \"\",\n \"red\": \"\"\n },\n \"themeColor\": \"\"\n }\n }\n },\n \"propertyState\": \"\",\n \"weight\": {\n \"magnitude\": \"\",\n \"unit\": \"\"\n }\n },\n \"recolor\": {\n \"name\": \"\",\n \"recolorStops\": [\n {\n \"alpha\": \"\",\n \"color\": {},\n \"position\": \"\"\n }\n ]\n },\n \"shadow\": {\n \"alignment\": \"\",\n \"alpha\": \"\",\n \"blurRadius\": {},\n \"color\": {},\n \"propertyState\": \"\",\n \"rotateWithShape\": false,\n \"transform\": {\n \"scaleX\": \"\",\n \"scaleY\": \"\",\n \"shearX\": \"\",\n \"shearY\": \"\",\n \"translateX\": \"\",\n \"translateY\": \"\",\n \"unit\": \"\"\n },\n \"type\": \"\"\n },\n \"transparency\": \"\"\n },\n \"placeholder\": {\n \"index\": 0,\n \"parentObjectId\": \"\",\n \"type\": \"\"\n },\n \"sourceUrl\": \"\"\n },\n \"line\": {\n \"lineCategory\": \"\",\n \"lineProperties\": {\n \"dashStyle\": \"\",\n \"endArrow\": \"\",\n \"endConnection\": {\n \"connectedObjectId\": \"\",\n \"connectionSiteIndex\": 0\n },\n \"lineFill\": {\n \"solidFill\": {}\n },\n \"link\": {},\n \"startArrow\": \"\",\n \"startConnection\": {},\n \"weight\": {}\n },\n \"lineType\": \"\"\n },\n \"objectId\": \"\",\n \"shape\": {\n \"placeholder\": {},\n \"shapeProperties\": {\n \"autofit\": {\n \"autofitType\": \"\",\n \"fontScale\": \"\",\n \"lineSpacingReduction\": \"\"\n },\n \"contentAlignment\": \"\",\n \"link\": {},\n \"outline\": {},\n \"shadow\": {},\n \"shapeBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"shapeType\": \"\",\n \"text\": {\n \"lists\": {},\n \"textElements\": [\n {\n \"autoText\": {\n \"content\": \"\",\n \"style\": {\n \"backgroundColor\": {\n \"opaqueColor\": {}\n },\n \"baselineOffset\": \"\",\n \"bold\": false,\n \"fontFamily\": \"\",\n \"fontSize\": {},\n \"foregroundColor\": {},\n \"italic\": false,\n \"link\": {},\n \"smallCaps\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"weightedFontFamily\": {\n \"fontFamily\": \"\",\n \"weight\": 0\n }\n },\n \"type\": \"\"\n },\n \"endIndex\": 0,\n \"paragraphMarker\": {\n \"bullet\": {\n \"bulletStyle\": {},\n \"glyph\": \"\",\n \"listId\": \"\",\n \"nestingLevel\": 0\n },\n \"style\": {\n \"alignment\": \"\",\n \"direction\": \"\",\n \"indentEnd\": {},\n \"indentFirstLine\": {},\n \"indentStart\": {},\n \"lineSpacing\": \"\",\n \"spaceAbove\": {},\n \"spaceBelow\": {},\n \"spacingMode\": \"\"\n }\n },\n \"startIndex\": 0,\n \"textRun\": {\n \"content\": \"\",\n \"style\": {}\n }\n }\n ]\n }\n },\n \"sheetsChart\": {\n \"chartId\": 0,\n \"contentUrl\": \"\",\n \"sheetsChartProperties\": {\n \"chartImageProperties\": {}\n },\n \"spreadsheetId\": \"\"\n },\n \"size\": {\n \"height\": {},\n \"width\": {}\n },\n \"table\": {\n \"columns\": 0,\n \"horizontalBorderRows\": [\n {\n \"tableBorderCells\": [\n {\n \"location\": {\n \"columnIndex\": 0,\n \"rowIndex\": 0\n },\n \"tableBorderProperties\": {\n \"dashStyle\": \"\",\n \"tableBorderFill\": {\n \"solidFill\": {}\n },\n \"weight\": {}\n }\n }\n ]\n }\n ],\n \"rows\": 0,\n \"tableColumns\": [\n {\n \"columnWidth\": {}\n }\n ],\n \"tableRows\": [\n {\n \"rowHeight\": {},\n \"tableCells\": [\n {\n \"columnSpan\": 0,\n \"location\": {},\n \"rowSpan\": 0,\n \"tableCellProperties\": {\n \"contentAlignment\": \"\",\n \"tableCellBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {}\n }\n },\n \"text\": {}\n }\n ],\n \"tableRowProperties\": {\n \"minRowHeight\": {}\n }\n }\n ],\n \"verticalBorderRows\": [\n {}\n ]\n },\n \"title\": \"\",\n \"transform\": {},\n \"video\": {\n \"id\": \"\",\n \"source\": \"\",\n \"url\": \"\",\n \"videoProperties\": {\n \"autoPlay\": false,\n \"end\": 0,\n \"mute\": false,\n \"outline\": {},\n \"start\": 0\n }\n },\n \"wordArt\": {\n \"renderedText\": \"\"\n }\n }\n ],\n \"pageProperties\": {\n \"colorScheme\": {\n \"colors\": [\n {\n \"color\": {},\n \"type\": \"\"\n }\n ]\n },\n \"pageBackgroundFill\": {\n \"propertyState\": \"\",\n \"solidFill\": {},\n \"stretchedPictureFill\": {\n \"contentUrl\": \"\",\n \"size\": {}\n }\n }\n },\n \"pageType\": \"\",\n \"revisionId\": \"\",\n \"slideProperties\": {\n \"isSkipped\": false,\n \"layoutObjectId\": \"\",\n \"masterObjectId\": \"\",\n \"notesPage\": \"\"\n }\n }\n ],\n \"locale\": \"\",\n \"masters\": [\n {}\n ],\n \"notesMaster\": {},\n \"pageSize\": {},\n \"presentationId\": \"\",\n \"revisionId\": \"\",\n \"slides\": [\n {}\n ],\n \"title\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/presentations";
let payload = json!({
"layouts": (
json!({
"layoutProperties": json!({
"displayName": "",
"masterObjectId": "",
"name": ""
}),
"masterProperties": json!({"displayName": ""}),
"notesProperties": json!({"speakerNotesObjectId": ""}),
"objectId": "",
"pageElements": (
json!({
"description": "",
"elementGroup": json!({"children": ()}),
"image": json!({
"contentUrl": "",
"imageProperties": json!({
"brightness": "",
"contrast": "",
"cropProperties": json!({
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
}),
"link": json!({
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
}),
"outline": json!({
"dashStyle": "",
"outlineFill": json!({"solidFill": json!({
"alpha": "",
"color": json!({
"rgbColor": json!({
"blue": "",
"green": "",
"red": ""
}),
"themeColor": ""
})
})}),
"propertyState": "",
"weight": json!({
"magnitude": "",
"unit": ""
})
}),
"recolor": json!({
"name": "",
"recolorStops": (
json!({
"alpha": "",
"color": json!({}),
"position": ""
})
)
}),
"shadow": json!({
"alignment": "",
"alpha": "",
"blurRadius": json!({}),
"color": json!({}),
"propertyState": "",
"rotateWithShape": false,
"transform": json!({
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
}),
"type": ""
}),
"transparency": ""
}),
"placeholder": json!({
"index": 0,
"parentObjectId": "",
"type": ""
}),
"sourceUrl": ""
}),
"line": json!({
"lineCategory": "",
"lineProperties": json!({
"dashStyle": "",
"endArrow": "",
"endConnection": json!({
"connectedObjectId": "",
"connectionSiteIndex": 0
}),
"lineFill": json!({"solidFill": json!({})}),
"link": json!({}),
"startArrow": "",
"startConnection": json!({}),
"weight": json!({})
}),
"lineType": ""
}),
"objectId": "",
"shape": json!({
"placeholder": json!({}),
"shapeProperties": json!({
"autofit": json!({
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
}),
"contentAlignment": "",
"link": json!({}),
"outline": json!({}),
"shadow": json!({}),
"shapeBackgroundFill": json!({
"propertyState": "",
"solidFill": json!({})
})
}),
"shapeType": "",
"text": json!({
"lists": json!({}),
"textElements": (
json!({
"autoText": json!({
"content": "",
"style": json!({
"backgroundColor": json!({"opaqueColor": json!({})}),
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": json!({}),
"foregroundColor": json!({}),
"italic": false,
"link": json!({}),
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": json!({
"fontFamily": "",
"weight": 0
})
}),
"type": ""
}),
"endIndex": 0,
"paragraphMarker": json!({
"bullet": json!({
"bulletStyle": json!({}),
"glyph": "",
"listId": "",
"nestingLevel": 0
}),
"style": json!({
"alignment": "",
"direction": "",
"indentEnd": json!({}),
"indentFirstLine": json!({}),
"indentStart": json!({}),
"lineSpacing": "",
"spaceAbove": json!({}),
"spaceBelow": json!({}),
"spacingMode": ""
})
}),
"startIndex": 0,
"textRun": json!({
"content": "",
"style": json!({})
})
})
)
})
}),
"sheetsChart": json!({
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": json!({"chartImageProperties": json!({})}),
"spreadsheetId": ""
}),
"size": json!({
"height": json!({}),
"width": json!({})
}),
"table": json!({
"columns": 0,
"horizontalBorderRows": (json!({"tableBorderCells": (
json!({
"location": json!({
"columnIndex": 0,
"rowIndex": 0
}),
"tableBorderProperties": json!({
"dashStyle": "",
"tableBorderFill": json!({"solidFill": json!({})}),
"weight": json!({})
})
})
)})),
"rows": 0,
"tableColumns": (json!({"columnWidth": json!({})})),
"tableRows": (
json!({
"rowHeight": json!({}),
"tableCells": (
json!({
"columnSpan": 0,
"location": json!({}),
"rowSpan": 0,
"tableCellProperties": json!({
"contentAlignment": "",
"tableCellBackgroundFill": json!({
"propertyState": "",
"solidFill": json!({})
})
}),
"text": json!({})
})
),
"tableRowProperties": json!({"minRowHeight": json!({})})
})
),
"verticalBorderRows": (json!({}))
}),
"title": "",
"transform": json!({}),
"video": json!({
"id": "",
"source": "",
"url": "",
"videoProperties": json!({
"autoPlay": false,
"end": 0,
"mute": false,
"outline": json!({}),
"start": 0
})
}),
"wordArt": json!({"renderedText": ""})
})
),
"pageProperties": json!({
"colorScheme": json!({"colors": (
json!({
"color": json!({}),
"type": ""
})
)}),
"pageBackgroundFill": json!({
"propertyState": "",
"solidFill": json!({}),
"stretchedPictureFill": json!({
"contentUrl": "",
"size": json!({})
})
})
}),
"pageType": "",
"revisionId": "",
"slideProperties": json!({
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
})
})
),
"locale": "",
"masters": (json!({})),
"notesMaster": json!({}),
"pageSize": json!({}),
"presentationId": "",
"revisionId": "",
"slides": (json!({})),
"title": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/presentations \
--header 'content-type: application/json' \
--data '{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}'
echo '{
"layouts": [
{
"layoutProperties": {
"displayName": "",
"masterObjectId": "",
"name": ""
},
"masterProperties": {
"displayName": ""
},
"notesProperties": {
"speakerNotesObjectId": ""
},
"objectId": "",
"pageElements": [
{
"description": "",
"elementGroup": {
"children": []
},
"image": {
"contentUrl": "",
"imageProperties": {
"brightness": "",
"contrast": "",
"cropProperties": {
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
},
"link": {
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
},
"outline": {
"dashStyle": "",
"outlineFill": {
"solidFill": {
"alpha": "",
"color": {
"rgbColor": {
"blue": "",
"green": "",
"red": ""
},
"themeColor": ""
}
}
},
"propertyState": "",
"weight": {
"magnitude": "",
"unit": ""
}
},
"recolor": {
"name": "",
"recolorStops": [
{
"alpha": "",
"color": {},
"position": ""
}
]
},
"shadow": {
"alignment": "",
"alpha": "",
"blurRadius": {},
"color": {},
"propertyState": "",
"rotateWithShape": false,
"transform": {
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
},
"type": ""
},
"transparency": ""
},
"placeholder": {
"index": 0,
"parentObjectId": "",
"type": ""
},
"sourceUrl": ""
},
"line": {
"lineCategory": "",
"lineProperties": {
"dashStyle": "",
"endArrow": "",
"endConnection": {
"connectedObjectId": "",
"connectionSiteIndex": 0
},
"lineFill": {
"solidFill": {}
},
"link": {},
"startArrow": "",
"startConnection": {},
"weight": {}
},
"lineType": ""
},
"objectId": "",
"shape": {
"placeholder": {},
"shapeProperties": {
"autofit": {
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
},
"contentAlignment": "",
"link": {},
"outline": {},
"shadow": {},
"shapeBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"shapeType": "",
"text": {
"lists": {},
"textElements": [
{
"autoText": {
"content": "",
"style": {
"backgroundColor": {
"opaqueColor": {}
},
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": {},
"foregroundColor": {},
"italic": false,
"link": {},
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "",
"weight": 0
}
},
"type": ""
},
"endIndex": 0,
"paragraphMarker": {
"bullet": {
"bulletStyle": {},
"glyph": "",
"listId": "",
"nestingLevel": 0
},
"style": {
"alignment": "",
"direction": "",
"indentEnd": {},
"indentFirstLine": {},
"indentStart": {},
"lineSpacing": "",
"spaceAbove": {},
"spaceBelow": {},
"spacingMode": ""
}
},
"startIndex": 0,
"textRun": {
"content": "",
"style": {}
}
}
]
}
},
"sheetsChart": {
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": {
"chartImageProperties": {}
},
"spreadsheetId": ""
},
"size": {
"height": {},
"width": {}
},
"table": {
"columns": 0,
"horizontalBorderRows": [
{
"tableBorderCells": [
{
"location": {
"columnIndex": 0,
"rowIndex": 0
},
"tableBorderProperties": {
"dashStyle": "",
"tableBorderFill": {
"solidFill": {}
},
"weight": {}
}
}
]
}
],
"rows": 0,
"tableColumns": [
{
"columnWidth": {}
}
],
"tableRows": [
{
"rowHeight": {},
"tableCells": [
{
"columnSpan": 0,
"location": {},
"rowSpan": 0,
"tableCellProperties": {
"contentAlignment": "",
"tableCellBackgroundFill": {
"propertyState": "",
"solidFill": {}
}
},
"text": {}
}
],
"tableRowProperties": {
"minRowHeight": {}
}
}
],
"verticalBorderRows": [
{}
]
},
"title": "",
"transform": {},
"video": {
"id": "",
"source": "",
"url": "",
"videoProperties": {
"autoPlay": false,
"end": 0,
"mute": false,
"outline": {},
"start": 0
}
},
"wordArt": {
"renderedText": ""
}
}
],
"pageProperties": {
"colorScheme": {
"colors": [
{
"color": {},
"type": ""
}
]
},
"pageBackgroundFill": {
"propertyState": "",
"solidFill": {},
"stretchedPictureFill": {
"contentUrl": "",
"size": {}
}
}
},
"pageType": "",
"revisionId": "",
"slideProperties": {
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
}
}
],
"locale": "",
"masters": [
{}
],
"notesMaster": {},
"pageSize": {},
"presentationId": "",
"revisionId": "",
"slides": [
{}
],
"title": ""
}' | \
http POST {{baseUrl}}/v1/presentations \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "layouts": [\n {\n "layoutProperties": {\n "displayName": "",\n "masterObjectId": "",\n "name": ""\n },\n "masterProperties": {\n "displayName": ""\n },\n "notesProperties": {\n "speakerNotesObjectId": ""\n },\n "objectId": "",\n "pageElements": [\n {\n "description": "",\n "elementGroup": {\n "children": []\n },\n "image": {\n "contentUrl": "",\n "imageProperties": {\n "brightness": "",\n "contrast": "",\n "cropProperties": {\n "angle": "",\n "bottomOffset": "",\n "leftOffset": "",\n "rightOffset": "",\n "topOffset": ""\n },\n "link": {\n "pageObjectId": "",\n "relativeLink": "",\n "slideIndex": 0,\n "url": ""\n },\n "outline": {\n "dashStyle": "",\n "outlineFill": {\n "solidFill": {\n "alpha": "",\n "color": {\n "rgbColor": {\n "blue": "",\n "green": "",\n "red": ""\n },\n "themeColor": ""\n }\n }\n },\n "propertyState": "",\n "weight": {\n "magnitude": "",\n "unit": ""\n }\n },\n "recolor": {\n "name": "",\n "recolorStops": [\n {\n "alpha": "",\n "color": {},\n "position": ""\n }\n ]\n },\n "shadow": {\n "alignment": "",\n "alpha": "",\n "blurRadius": {},\n "color": {},\n "propertyState": "",\n "rotateWithShape": false,\n "transform": {\n "scaleX": "",\n "scaleY": "",\n "shearX": "",\n "shearY": "",\n "translateX": "",\n "translateY": "",\n "unit": ""\n },\n "type": ""\n },\n "transparency": ""\n },\n "placeholder": {\n "index": 0,\n "parentObjectId": "",\n "type": ""\n },\n "sourceUrl": ""\n },\n "line": {\n "lineCategory": "",\n "lineProperties": {\n "dashStyle": "",\n "endArrow": "",\n "endConnection": {\n "connectedObjectId": "",\n "connectionSiteIndex": 0\n },\n "lineFill": {\n "solidFill": {}\n },\n "link": {},\n "startArrow": "",\n "startConnection": {},\n "weight": {}\n },\n "lineType": ""\n },\n "objectId": "",\n "shape": {\n "placeholder": {},\n "shapeProperties": {\n "autofit": {\n "autofitType": "",\n "fontScale": "",\n "lineSpacingReduction": ""\n },\n "contentAlignment": "",\n "link": {},\n "outline": {},\n "shadow": {},\n "shapeBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n },\n "shapeType": "",\n "text": {\n "lists": {},\n "textElements": [\n {\n "autoText": {\n "content": "",\n "style": {\n "backgroundColor": {\n "opaqueColor": {}\n },\n "baselineOffset": "",\n "bold": false,\n "fontFamily": "",\n "fontSize": {},\n "foregroundColor": {},\n "italic": false,\n "link": {},\n "smallCaps": false,\n "strikethrough": false,\n "underline": false,\n "weightedFontFamily": {\n "fontFamily": "",\n "weight": 0\n }\n },\n "type": ""\n },\n "endIndex": 0,\n "paragraphMarker": {\n "bullet": {\n "bulletStyle": {},\n "glyph": "",\n "listId": "",\n "nestingLevel": 0\n },\n "style": {\n "alignment": "",\n "direction": "",\n "indentEnd": {},\n "indentFirstLine": {},\n "indentStart": {},\n "lineSpacing": "",\n "spaceAbove": {},\n "spaceBelow": {},\n "spacingMode": ""\n }\n },\n "startIndex": 0,\n "textRun": {\n "content": "",\n "style": {}\n }\n }\n ]\n }\n },\n "sheetsChart": {\n "chartId": 0,\n "contentUrl": "",\n "sheetsChartProperties": {\n "chartImageProperties": {}\n },\n "spreadsheetId": ""\n },\n "size": {\n "height": {},\n "width": {}\n },\n "table": {\n "columns": 0,\n "horizontalBorderRows": [\n {\n "tableBorderCells": [\n {\n "location": {\n "columnIndex": 0,\n "rowIndex": 0\n },\n "tableBorderProperties": {\n "dashStyle": "",\n "tableBorderFill": {\n "solidFill": {}\n },\n "weight": {}\n }\n }\n ]\n }\n ],\n "rows": 0,\n "tableColumns": [\n {\n "columnWidth": {}\n }\n ],\n "tableRows": [\n {\n "rowHeight": {},\n "tableCells": [\n {\n "columnSpan": 0,\n "location": {},\n "rowSpan": 0,\n "tableCellProperties": {\n "contentAlignment": "",\n "tableCellBackgroundFill": {\n "propertyState": "",\n "solidFill": {}\n }\n },\n "text": {}\n }\n ],\n "tableRowProperties": {\n "minRowHeight": {}\n }\n }\n ],\n "verticalBorderRows": [\n {}\n ]\n },\n "title": "",\n "transform": {},\n "video": {\n "id": "",\n "source": "",\n "url": "",\n "videoProperties": {\n "autoPlay": false,\n "end": 0,\n "mute": false,\n "outline": {},\n "start": 0\n }\n },\n "wordArt": {\n "renderedText": ""\n }\n }\n ],\n "pageProperties": {\n "colorScheme": {\n "colors": [\n {\n "color": {},\n "type": ""\n }\n ]\n },\n "pageBackgroundFill": {\n "propertyState": "",\n "solidFill": {},\n "stretchedPictureFill": {\n "contentUrl": "",\n "size": {}\n }\n }\n },\n "pageType": "",\n "revisionId": "",\n "slideProperties": {\n "isSkipped": false,\n "layoutObjectId": "",\n "masterObjectId": "",\n "notesPage": ""\n }\n }\n ],\n "locale": "",\n "masters": [\n {}\n ],\n "notesMaster": {},\n "pageSize": {},\n "presentationId": "",\n "revisionId": "",\n "slides": [\n {}\n ],\n "title": ""\n}' \
--output-document \
- {{baseUrl}}/v1/presentations
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"layouts": [
[
"layoutProperties": [
"displayName": "",
"masterObjectId": "",
"name": ""
],
"masterProperties": ["displayName": ""],
"notesProperties": ["speakerNotesObjectId": ""],
"objectId": "",
"pageElements": [
[
"description": "",
"elementGroup": ["children": []],
"image": [
"contentUrl": "",
"imageProperties": [
"brightness": "",
"contrast": "",
"cropProperties": [
"angle": "",
"bottomOffset": "",
"leftOffset": "",
"rightOffset": "",
"topOffset": ""
],
"link": [
"pageObjectId": "",
"relativeLink": "",
"slideIndex": 0,
"url": ""
],
"outline": [
"dashStyle": "",
"outlineFill": ["solidFill": [
"alpha": "",
"color": [
"rgbColor": [
"blue": "",
"green": "",
"red": ""
],
"themeColor": ""
]
]],
"propertyState": "",
"weight": [
"magnitude": "",
"unit": ""
]
],
"recolor": [
"name": "",
"recolorStops": [
[
"alpha": "",
"color": [],
"position": ""
]
]
],
"shadow": [
"alignment": "",
"alpha": "",
"blurRadius": [],
"color": [],
"propertyState": "",
"rotateWithShape": false,
"transform": [
"scaleX": "",
"scaleY": "",
"shearX": "",
"shearY": "",
"translateX": "",
"translateY": "",
"unit": ""
],
"type": ""
],
"transparency": ""
],
"placeholder": [
"index": 0,
"parentObjectId": "",
"type": ""
],
"sourceUrl": ""
],
"line": [
"lineCategory": "",
"lineProperties": [
"dashStyle": "",
"endArrow": "",
"endConnection": [
"connectedObjectId": "",
"connectionSiteIndex": 0
],
"lineFill": ["solidFill": []],
"link": [],
"startArrow": "",
"startConnection": [],
"weight": []
],
"lineType": ""
],
"objectId": "",
"shape": [
"placeholder": [],
"shapeProperties": [
"autofit": [
"autofitType": "",
"fontScale": "",
"lineSpacingReduction": ""
],
"contentAlignment": "",
"link": [],
"outline": [],
"shadow": [],
"shapeBackgroundFill": [
"propertyState": "",
"solidFill": []
]
],
"shapeType": "",
"text": [
"lists": [],
"textElements": [
[
"autoText": [
"content": "",
"style": [
"backgroundColor": ["opaqueColor": []],
"baselineOffset": "",
"bold": false,
"fontFamily": "",
"fontSize": [],
"foregroundColor": [],
"italic": false,
"link": [],
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": [
"fontFamily": "",
"weight": 0
]
],
"type": ""
],
"endIndex": 0,
"paragraphMarker": [
"bullet": [
"bulletStyle": [],
"glyph": "",
"listId": "",
"nestingLevel": 0
],
"style": [
"alignment": "",
"direction": "",
"indentEnd": [],
"indentFirstLine": [],
"indentStart": [],
"lineSpacing": "",
"spaceAbove": [],
"spaceBelow": [],
"spacingMode": ""
]
],
"startIndex": 0,
"textRun": [
"content": "",
"style": []
]
]
]
]
],
"sheetsChart": [
"chartId": 0,
"contentUrl": "",
"sheetsChartProperties": ["chartImageProperties": []],
"spreadsheetId": ""
],
"size": [
"height": [],
"width": []
],
"table": [
"columns": 0,
"horizontalBorderRows": [["tableBorderCells": [
[
"location": [
"columnIndex": 0,
"rowIndex": 0
],
"tableBorderProperties": [
"dashStyle": "",
"tableBorderFill": ["solidFill": []],
"weight": []
]
]
]]],
"rows": 0,
"tableColumns": [["columnWidth": []]],
"tableRows": [
[
"rowHeight": [],
"tableCells": [
[
"columnSpan": 0,
"location": [],
"rowSpan": 0,
"tableCellProperties": [
"contentAlignment": "",
"tableCellBackgroundFill": [
"propertyState": "",
"solidFill": []
]
],
"text": []
]
],
"tableRowProperties": ["minRowHeight": []]
]
],
"verticalBorderRows": [[]]
],
"title": "",
"transform": [],
"video": [
"id": "",
"source": "",
"url": "",
"videoProperties": [
"autoPlay": false,
"end": 0,
"mute": false,
"outline": [],
"start": 0
]
],
"wordArt": ["renderedText": ""]
]
],
"pageProperties": [
"colorScheme": ["colors": [
[
"color": [],
"type": ""
]
]],
"pageBackgroundFill": [
"propertyState": "",
"solidFill": [],
"stretchedPictureFill": [
"contentUrl": "",
"size": []
]
]
],
"pageType": "",
"revisionId": "",
"slideProperties": [
"isSkipped": false,
"layoutObjectId": "",
"masterObjectId": "",
"notesPage": ""
]
]
],
"locale": "",
"masters": [[]],
"notesMaster": [],
"pageSize": [],
"presentationId": "",
"revisionId": "",
"slides": [[]],
"title": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/presentations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
slides.presentations.get
{{baseUrl}}/v1/presentations/:presentationId
QUERY PARAMS
presentationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/presentations/:presentationId");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/presentations/:presentationId")
require "http/client"
url = "{{baseUrl}}/v1/presentations/:presentationId"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/presentations/:presentationId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/presentations/:presentationId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/presentations/:presentationId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/presentations/:presentationId HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/presentations/:presentationId")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/presentations/:presentationId"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/presentations/:presentationId")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/presentations/:presentationId');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/presentations/:presentationId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/presentations/:presentationId',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/presentations/:presentationId',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/presentations/:presentationId');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/presentations/:presentationId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/presentations/:presentationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/presentations/:presentationId" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/presentations/:presentationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/presentations/:presentationId');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/presentations/:presentationId');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/presentations/:presentationId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/presentations/:presentationId' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/presentations/:presentationId' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/presentations/:presentationId")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/presentations/:presentationId"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/presentations/:presentationId"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/presentations/:presentationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/presentations/:presentationId') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/presentations/:presentationId";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/presentations/:presentationId
http GET {{baseUrl}}/v1/presentations/:presentationId
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/presentations/:presentationId
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/presentations/:presentationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
slides.presentations.pages.get
{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId
QUERY PARAMS
presentationId
pageObjectId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")
require "http/client"
url = "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/presentations/:presentationId/pages/:pageObjectId HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/presentations/:presentationId/pages/:pageObjectId',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/presentations/:presentationId/pages/:pageObjectId")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/presentations/:presentationId/pages/:pageObjectId') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId
http GET {{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
slides.presentations.pages.getThumbnail
{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail
QUERY PARAMS
presentationId
pageObjectId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
require "http/client"
url = "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail
http GET {{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/presentations/:presentationId/pages/:pageObjectId/thumbnail")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()