代表圖片的 Page。
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
align | Image | 將元素對齊頁面上的指定對齊位置。 |
bring | Image | 將頁面元素在頁面上往前移動一個元素。 |
bring | Image | 將頁面元素移至頁面最前方。 |
duplicate() | Page | 複製頁面元素。 |
get | Blob | 以轉換為指定內容類型的 Blob 形式,傳回這個物件內的資料。 |
get | Blob | 以 Blob 形式傳回這張圖片內的資料。 |
get | Border | 傳回圖片的 Border。 |
get | Connection | 傳回網頁元素上的 Connection 清單;如果網頁元素沒有任何連結網站,則傳回空白清單。 |
get | String | 取得圖片的網址。 |
get | String | 傳回網頁元素的替代文字說明。 |
get | Number|null | 以點為單位取得元素的高度,也就是元素沒有旋轉時,元素周框的高度。 |
get | Number|null | 傳回元素固有的高度 (以點為單位)。 |
get | Number|null | 傳回元素固有的寬度 (以點為單位)。 |
get | Number | 傳回元素在頁面中的水平位置 (以點為單位),測量基準為元素未旋轉時的頁面左上角。 |
get | Link|null | 如果沒有連結,則傳回 Link 或 null。 |
get | String | 傳回這個物件的專屬 ID。 |
get | Page | 傳回頁面元素的類型,以 Page 列舉表示。 |
get | Group|null | 傳回這個頁面元素所屬的群組,如果元素不在群組中,則傳回 null。 |
get | Page | 傳回這個頁面元素所在的頁面。 |
get | Page | 傳回預留位置的父項頁面元素。 |
get | Integer|null | 傳回預留位置圖片的索引。 |
get | Placeholder | 傳回圖片的預留位置類型,如果圖案不是預留位置,則傳回 Placeholder。 |
get | Number | 傳回元素以中心為軸的順時針旋轉角度 (以度為單位),零度表示未旋轉。 |
get | String|null | 取得圖片的來源網址 (如有)。 |
get | String | 傳回網頁元素的替代文字標題。 |
get | Number | 取得元素在頁面中的垂直位置 (以點為單位),測量基準為頁面左上角 (元素未旋轉時)。 |
get | Affine | 傳回頁面元素的轉換。 |
get | Number|null | 以點為單位傳回元素的寬度,也就是元素沒有旋轉時,元素周框的寬度。 |
preconcatenate | Image | 將提供的轉換預先串連至網頁元素的現有轉換。 |
remove() | void | 移除頁面元素。 |
remove | void | 移除 Link。 |
replace(blobSource) | Image | 以 Blob 物件描述的圖片取代這張圖片。 |
replace(blobSource, crop) | Image | 以 Image 物件描述的圖片取代這張圖片,並視需要裁剪圖片以符合大小。 |
replace(imageUrl) | Image | 使用從指定網址下載的圖片取代目前圖片。 |
replace(imageUrl, crop) | Image | 使用從所提供網址下載的圖片取代此圖片,並視需要裁剪圖片以符合大小。 |
scale | Image | 依指定比例縮放元素高度。 |
scale | Image | 依指定比例縮放元素的寬度。 |
select() | void | 只選取目前簡報中的 Page,並移除先前的選取項目。 |
select(replace) | void | 選取使用中簡報中的 Page。 |
send | Image | 將頁面元素在頁面上往後移動一個元素。 |
send | Image | 將頁面元素移到頁面後方。 |
set | Image | 設定頁面元素的替代文字說明。 |
set | Image | 以點為單位設定元素的高度,也就是元素沒有旋轉時,元素周框的高度。 |
set | Image | 以點為單位設定元素在頁面上的水平位置,測量起點為頁面左上角 (元素未旋轉時)。 |
set | Link | 使用投影片的索引 (從零開始計算),將 Link 設為指定的 Slide。 |
set | Link | 將 Link 設為指定 Slide,連結會依指定投影片 ID 設定。 |
set | Link | 使用投影片的相對位置,將 Link 設為指定 Slide。 |
set | Link | 將 Link 設為指定的非空白網址字串。 |
set | Image | 設定元素以中心為軸,順時針旋轉的角度 (以度為單位)。 |
set | Image | 設定網頁元素的替代文字標題。 |
set | Image | 以點為單位設定元素在頁面上的垂直位置,測量起點為頁面左上角 (元素未旋轉時)。 |
set | Image | 使用提供的轉換設定網頁元素的轉換。 |
set | Image | 以點為單位設定元素寬度,也就是元素沒有旋轉時,元素周框的寬度。 |
內容詳盡的說明文件
align On Page(alignmentPosition)
將元素對齊頁面上的指定對齊位置。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
alignment | Alignment | 頁面元素在頁面上的對齊位置。 |
回攻員
Image - 這個頁面元素,用於鏈結。
bring Forward()
bring To Front()
duplicate()
複製頁面元素。
重複的頁面元素會放在與原始元素相同頁面的相同位置。
回攻員
Page:這個頁面元素的新副本。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get As(contentType)
以轉換為指定內容類型的 Blob 形式,傳回這個物件內的資料。這個方法會在檔案名稱中加入適當的副檔名,例如「myfile.pdf」。不過,系統會假設檔案名稱中最後一個半形句點 (如有) 後方的部分是現有副檔名,應予以取代。因此,「ShoppingList.12.25.2014」會變成「ShoppingList.12.25.pdf」。
如要查看每日轉換配額,請參閱「Google 服務配額」。新建立的 Google Workspace 網域可能暫時會受到較嚴格的配額限制。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
content | String | 要轉換成的 MIME 類型。對於大多數 Blob 而言,'application/pdf' 是唯一有效的選項。如果是 BMP、GIF、JPEG 或 PNG 格式的圖片,'image/bmp'、'image/gif'、'image/jpeg' 或 'image/png' 也有效。如果是 Google 文件,'text/markdown' 也有效。 |
回攻員
Blob:以 Blob 形式呈現的資料。
get Blob()
get Border()
get Connection Sites()
傳回網頁元素上的 Connection 清單;如果網頁元素沒有任何連結網站,則傳回空白清單。
回攻員
Connection - 連線網站清單,如果這個元素沒有連線網站,清單可能會是空白的。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Content Url()
取得圖片的網址。
這個網址會標記要求者的帳戶,因此任何擁有網址的人,都能以原始要求者的身分存取圖片。如果簡報的共用設定變更,您可能無法再存取圖片。傳回的網址會在短時間內失效。
回攻員
String
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Description()
傳回網頁元素的替代文字說明。系統會合併說明和標題,顯示及朗讀替代文字。
回攻員
String:網頁元素的替代文字說明。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Height()
get Inherent Height()
傳回元素固有的高度 (以點為單位)。
頁面元素的變形是相對於其固有大小。搭配元素轉換使用固有大小,即可判斷元素的最終視覺外觀。
回攻員
Number|null:頁面元素以點為單位的固有高度,如果頁面元素沒有高度,則為 null。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Inherent Width()
傳回元素固有的寬度 (以點為單位)。
頁面元素的變形是相對於其固有大小。搭配元素轉換使用固有大小,即可判斷元素的最終視覺外觀。
回攻員
Number|null:頁面元素的固有寬度 (以點為單位),如果頁面元素沒有寬度,則為 null。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Left()
傳回元素在頁面中的水平位置 (以點為單位),測量基準為元素未旋轉時的頁面左上角。
回攻員
Number:這個元素在頁面上的水平位置 (以點為單位),從頁面左上角開始計算。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Link()
如果沒有連結,則傳回 Link 或 null。
const shape = SlidesApp.getActivePresentation().getSlides()[0].getShapes()[0]; const link = shape.getLink(); if (link != null) { Logger.log(`Shape has a link of type: ${link.getLinkType()}`); }
回攻員
Link|null - 如果沒有連結,則為 Link 或 null。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Object Id()
傳回這個物件的專屬 ID。網頁和網頁元素使用的物件 ID 共用相同的命名空間。
回攻員
String:這個物件的專屬 ID。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Page Element Type()
傳回頁面元素的類型,以 Page 列舉表示。
回攻員
Page:頁面元素的類型。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Parent Group()
get Parent Page()
get Parent Placeholder()
傳回預留位置的父項頁面元素。如果圖片不是預留位置或沒有父項,則傳回 null。
回攻員
Page:這個圖片預留位置的父項網頁元素,如果圖片不是預留位置或沒有父項,則為 null。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Placeholder Index()
傳回預留位置圖片的索引。如果同一網頁上有兩個以上的預留位置圖片屬於相同類型,則每個圖片都會有專屬的索引值。如果圖片不是預留位置,則傳回 null。
回攻員
Integer|null:這張圖片的預留位置索引,如果圖片不是預留位置,則為 null。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Placeholder Type()
傳回圖片的預留位置類型,如果圖案不是預留位置,則傳回 Placeholder。
回攻員
Placeholder - 這張圖片的預留位置類型。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Rotation()
傳回元素以中心為軸的順時針旋轉角度 (以度為單位),零度表示未旋轉。
回攻員
Number:旋轉角度,以度為單位,介於 0 到 360 之間 (含 0 但不含 360)。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Source Url()
取得圖片的來源網址 (如有)。
透過網址插入圖片時,系統會傳回插入圖片時提供的網址。
回攻員
String|null:圖片網址,或 null (如果圖片沒有來源網址)。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Title()
傳回網頁元素的替代文字標題。系統會將標題與說明合併,顯示及朗讀替代文字。
回攻員
String:頁面元素的替代文字標題。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Top()
取得元素在頁面中的垂直位置 (以點為單位),測量基準為頁面左上角 (元素未旋轉時)。
回攻員
Number:這個元素在頁面左上角的位置 (以點為單位)。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Transform()
傳回頁面元素的轉換。
頁面元素的外觀取決於其絕對轉換。如要計算絕對轉換,請將網頁元素的轉換與所有父項群組的轉換預先串連。如果網頁元素不在群組中,其絕對轉換與這個欄位中的值相同。
回攻員
Affine - 頁面元素的轉換。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Width()
preconcatenate Transform(transform)
將提供的轉換預先串連至網頁元素的現有轉換。
newTransform = argument * existingTransform;
舉例來說,如要將頁面元素向左移動 36 點:
const element = SlidesApp.getActivePresentation().getSlides()[0].getPageElements()[0]; element.preconcatenateTransform( SlidesApp.newAffineTransformBuilder().setTranslateX(-36.0).build(), );
您也可以使用 set 替換頁面元素的轉換。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
transform | Affine | 要預先串連至這個頁面元素轉換的轉換。 |
回攻員
Image - 這個頁面元素,用於鏈結。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
remove()
移除網頁元素。
如果移除作業後,Group 只包含一個或不包含任何頁面元素,系統也會移除該群組。
如果移除主版或版面配置中的預留位置 Page,系統也會一併移除所有空白的繼承預留位置。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
remove Link()
移除 Link。
const slides = SlidesApp.getActivePresentation().getSlides(); slides[1].getShapes()[0].removeLink();
replace(blobSource)
以 Blob 物件描述的圖片取代這張圖片。
插入圖片時,系統會從
Blob 擷取圖片一次,並儲存副本,以便在簡報中顯示。
圖片大小不得超過 50 MB,像素不得超過 2500 萬,且格式必須為 PNG、JPEG 或 GIF。
為維持圖片的顯示比例,系統會根據現有圖片的大小縮放圖片並置中。
const image = SlidesApp.getActivePresentation().getSlides()[0].getImages()[0]; // Get the Drive image file with the given ID. const driveImage = DriveApp.getFileById("123abc"); image.replace(driveImage);
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
blob | Blob | 圖片資料。 |
回攻員
Image - 這是Image更換後的裝置。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
replace(blobSource, crop)
以 Image 物件描述的圖片取代這張圖片,並視需要裁剪圖片以符合大小。
插入圖片時,系統會從
Blob 擷取圖片一次,並儲存副本,以便在簡報中顯示。
圖片大小不得超過 50 MB,像素不得超過 2500 萬,且格式必須為 PNG、JPEG 或 GIF。
const image = SlidesApp.getActivePresentation().getSlides()[0].getImages()[0]; // Get the Drive image file with the given ID. const driveImage = DriveApp.getFileById('123abc'); // Replace and crop the drive image. image.replace(driveImage, true);
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
blob | Blob | 圖片資料。 |
crop | Boolean | 如果選取 true,系統會裁剪圖片,使其符合現有圖片大小。否則圖片會縮放並置中。 |
回攻員
Image - 這是Image更換後的裝置。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
replace(imageUrl)
以從所提供網址下載的圖片取代這張圖片。
插入圖片時,系統會從網址擷取圖片一次,並儲存副本,以便在簡報中顯示。圖片大小不得超過 50 MB,像素不得超過 2500 萬,且格式必須為 PNG、JPEG 或 GIF。
提供的網址必須可供所有人存取,且大小不得超過 2 KB。網址本身會與圖片一併儲存,並透過 get 公開。
為維持圖片的顯示比例,系統會根據現有圖片的大小縮放圖片,並將圖片置中。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
image | String | 可下載圖片的網址。 |
回攻員
Image - 這是Image更換後的裝置。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
replace(imageUrl, crop)
使用從所提供網址下載的圖片取代此圖片,並視需要裁剪圖片以符合大小。
插入圖片時,系統會從網址擷取圖片一次,並儲存副本,以便在簡報中顯示。圖片大小不得超過 50 MB,像素不得超過 2500 萬,且格式必須為 PNG、JPEG 或 GIF。
提供的網址不得超過 2 KB。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
image | String | 可下載圖片的網址。 |
crop | Boolean | 如果選取 true,系統會裁剪圖片,使其符合現有圖片大小。否則圖片會縮放並置中。 |
回攻員
Image - 這是Image更換後的裝置。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
scale Height(ratio)
scale Width(ratio)
select()
只選取目前簡報中的 Page,並移除先前的選取項目。這與使用 true 呼叫 select(replace) 相同。
指令碼只能存取執行指令碼的使用者選取的內容,且指令碼必須繫結至簡報。
這會將 Page 的父項 Page 設為 current page selection。
const slide = SlidesApp.getActivePresentation().getSlides()[0]; const pageElement = slide.getPageElements()[0]; // Only select this page element and replace any previous selection. pageElement.select();
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
select(replace)
選取目前簡報中的 Page。
指令碼只能存取執行指令碼的使用者選取的內容,且指令碼必須繫結至簡報。
將 true 傳遞至這個方法,即可只選取 Page,並移除任何先前的選取項目。這也會將 Page 的父項 Page 設為 current page selection。
傳遞 false 可選取多個 Page 物件。Page 物件必須位於同一個 Page 中。
使用 false 參數選取網頁元素時,必須符合下列條件:
Page物件的父項Element Page必須是current page selection。- 選取的
Page物件不得超過一個。
為確保是這種情況,建議先使用 Page.selectAsCurrentPage() 選取父項 Page,然後選取該網頁中的網頁元素。
const slide = SlidesApp.getActivePresentation().getSlides()[0]; // First select the slide page, as the current page selection. slide.selectAsCurrentPage(); // Then select all the page elements in the selected slide page. const pageElements = slide.getPageElements(); for (let i = 0; i < pageElements.length; i++) { pageElements[i].select(false); }
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
replace | Boolean | 如果 true,所選項目會取代先前的選項;否則所選項目會新增至先前的選項。 |
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
send Backward()
send To Back()
set Description(description)
設定頁面元素的替代文字說明。
Group 元素不支援這個方法。
// Set the first page element's alt text description to "new alt text // description". const pageElement = SlidesApp.getActivePresentation().getSlides()[0].getPageElements()[0]; pageElement.setDescription('new alt text description'); Logger.log(pageElement.getDescription());
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
description | String | 要設定的替代文字說明字串。 |
回攻員
Image:這個網頁元素。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Height(height)
set Left(left)
set Link Slide(slideIndex)
使用投影片的索引 (從零開始計算),將 Link 設為指定 Slide。
// Set a link to the first slide of the presentation. const slides = SlidesApp.getActivePresentation().getSlides(); const shape = slides[1].getShapes()[0]; const link = shape.setLinkSlide(0);
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
slide | Integer | 投影片的索引,從零開始。 |
回攻員
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Link Slide(slide)
將指定 Slide 的 Link 設為指定投影片 ID 的連結。
// Set a link to the first slide of the presentation. const slides = SlidesApp.getActivePresentation().getSlides(); const shape = slides[1].getShapes()[0]; const link = shape.setLinkSlide(slides[0]);
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
slide | Slide | 要連結的 Slide。 |
回攻員
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Link Slide(slidePosition)
// Set a link to the first slide of the presentation. const slides = SlidesApp.getActivePresentation().getSlides(); const shape = slides[1].getShapes()[0]; const link = shape.setLinkSlide(SlidesApp.SlidePosition.FIRST_SLIDE);
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
slide | Slide | 相對 Slide。 |
回攻員
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Link Url(url)
將 Link 設為指定的非空白網址字串。
// Set a link to the URL. const slides = SlidesApp.getActivePresentation().getSlides(); const shape = slides[1].getShapes()[0]; const link = shape.setLinkUrl('https://slides.google.com');
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
url | String | 網址字串。 |
回攻員
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Rotation(angle)
set Title(title)
設定網頁元素的替代文字標題。
Group 元素不支援這個方法。
// Set the first page element's alt text title to "new alt text title". const pageElement = SlidesApp.getActivePresentation().getSlides()[0].getPageElements()[0]; pageElement.setTitle('new alt text title'); Logger.log(pageElement.getTitle());
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
title | String | 用來設定替代文字標題的字串。 |
回攻員
Image:這個網頁元素。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Top(top)
set Transform(transform)
使用提供的轉換設定網頁元素的轉換。
更新群組的變形會變更該群組中網頁元素的絕對變形,這可能會改變這些元素的外觀。
更新群組中網頁元素的轉換作業時,只會變更該網頁元素的轉換作業,不會影響群組或群組中其他網頁元素的轉換作業。
如要瞭解轉換如何影響網頁元素的視覺外觀,請參閱 get。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
transform | Affine | 為這個頁面元素設定的轉換。 |
回攻員
Image - 這個元素用於串連。
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations