我使用的PHP文件API庫用幾乎相同的代碼,在這裏通過上傳我的應用程序的視頻更新視頻; https://developers.google.com/youtube/v3/code_samples/php#updating_a_video_by_adding_new_tags。無法上傳或標籤
上傳的視頻正確接收的標題,描述和播放列表,而不是標籤。
在所有的任何線索?
編輯: 我想知道它是否與範圍有關,如果我已授權https://www.googleapis.com/auth/youtube
或https://www.googleapis.com/auth/youtube.upload
?
這個問題:Youtube Google API V3: List Videos not returning video tags 得到的回答暗示「onBehalfOfContentOwner」參數,但是,試圖與參數上傳當我得到"HTTP 403: youtube.common, Access forbidden. The request may not be properly authorized"
($insertRequest = $youtube->videos->insert('status,snippet', $video, ['onBehalfOfContentOwner' => true]);
)
鑑於你沒有提供任何有用的信息(例如,實際的代碼),我打電話給PEBKAC作爲原因... –
我認爲這是不必要的,因爲它基本上是帶有明顯變量的示例代碼 –