admin管理员组文章数量:1403182
Im trying with this code:
$playlistId = "YOUR_PLAYLIST_ID"; // Replace with your actual Playlist ID
$playlistItem = new Google\Service\YouTube\PlaylistItem();
$playlistItemSnippet = new Google\Service\YouTube\PlaylistItemSnippet();
$playlistItemSnippet->setPlaylistId($playlistId);
$playlistItemSnippet->setResourceId(new Google\Service\YouTube\ResourceId([
'kind' => 'youtube#video',
'videoId' => $videoId
]));
$playlistItem->setSnippet($playlistItemSnippet);
$response = $youtube->playlistItems->insert('snippet', $playlistItem);
but the video doesnt get the playlist, there is not error nor exception, and response is a Guzzle typed.
本文标签: youtubeHow to put a video to a playlistin phpStack Overflow
版权声明:本文标题:youtube - How to put a video to a playlist, in php? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744404361a2604628.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论