我需要在谷歌幻灯片中通过php添加标题和描述
我创建了幻灯片
$requests = array();
$requests[] = new \Google_Service_Slides_Request(
array(
'createSlide' => array (
'objectId' => $nameSlide,
'insertionIndex' => 0,
'slideLayoutReference' => array (
'predefinedLayout' => 'TITLE_AND_BODY'
)
)
));
$batchUpdateRequest = new \Google_Service_Slides_BatchUpdatePresentationRequest(array(
'requests' => $requests
));
$response = self::$serviceSlide->presentations->batchUpdate($id, $batchUpdateRequest);
$createSlideResponse = $response->getReplies()[0]->getCreateSlide();
$id = $createSlideResponse->getObjectId();
幻灯片具有此格式
如何在标题和说明中添加文字?
答案 0 :(得分:0)