Skip to content

Commit 61df580

Browse files
grantEric Koleda
authored andcommitted
fix: slides_create_image URL (googleworkspace#127)
* fix: slides_create_image URL * docs: Update slides_create_image comment * refactor: Standardize comment and revert var uppercase * Update Snippets.gs
1 parent 13b9c82 commit 61df580

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

slides/api/Snippets.gs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,12 @@ Snippets.prototype.createTextboxWithText = function(presentationId, pageId) {
119119
};
120120

121121
Snippets.prototype.createImage = function(presentationId, pageId) {
122-
var imageFileId = '0B2P_aO_vjnJ4aERnX2ZzbUtMZXc';
123122
// [START slides_create_image]
124-
// Add a new image to the presentation page. The image is assumed to exist in
125-
// the user's Drive, and have 'imageFileId' as its file ID.
123+
// Create a new image, using the supplied object ID, with content downloaded from imageUrl.
126124
var requests = [];
127125
var imageId = 'MyImage_01';
128-
var imageUrl = DriveApp.getFileById(imageFileId).getDownloadUrl() + '&access_token=' +
129-
ScriptApp.getOAuthToken();
126+
var imageUrl = 'https://www.google.com/images/branding/googlelogo/2x/' +
127+
'googlelogo_color_272x92dp.png';
130128
var emu4M = {
131129
magnitude: 4000000,
132130
unit: 'EMU'

0 commit comments

Comments
 (0)