Я пытаюсь обновить метаданные видео с помощью API Youtube. Я использую API google-api-php-client. Этот API отлично работает в процессах загрузки и удаления, но когда я хочу обновить информацию о видео, я не знаю, какие параметры мне нужно использовать.
Это код:
try
{
// Build the Needed Video Information
$snippet = new Google_VideoSnippet();
$snippet->setTitle($_POST['videoTitle']);
$snippet->setDescription($_POST['videoDescription']);
$snippet->setTags(array($_POST['videoTags']));
$snippet->setCategoryId(22);
// Set the Video Info and Status in the Main Tag
$video = new Google_Video();
$video->setSnippet($snippet);
// Send the video to the Google Youtube API
$created_file = $youtube->videos->update('snippet', $video, array(
WHAT PARAMETERS!!!???!!
));
// Get the information of the uploaded video
print_r($createdFile);
}
catch (Exception $ex)
{
echo $ex;
}
Кто-то знает это? ? я бы хотел продолжать использовать этот API, потому что все мои приложения используют его.
Заранее благодарю.