如何以编程方式获取YouTube内容所有者ID

时间:2019-01-07 20:13:51

标签: php youtube-data-api

我正在为YouTube CMS帐户编写PHP脚本。我希望脚本将视频信息从一个频道复制到另一个频道。注意:这些频道由YouTube CMS帐户管理。我在这里面临的问题是我需要向查询提供contentOwnerId。例如array(" onBehalfOfContentOwner"=>"contentOwnerIdHere"),以便访问特定频道中的所有内容。 我的问题是如何以编程方式获取ContentOwnerId?我在下面的链接上阅读了如何使用YouTube数据API V1获取内容所有者的详细信息,但YouTube数据API V3中似乎没有“ Google_Service_YouTubePartner($ client)”类。我正在使用通过Composer安装的Google客户端库。.
Where do I find my or my customers YouTube "content owner id"?

我可以使用Google_Service_YouTubePartner($client)之外的Google Cliennt库中是否有一个类?还是我可以采取其他任何方式来获取ContentOwners信息。 注意:我的主要目标是获取我管理的所有频道的ContentOwnerId。 下面是需要ContentOwnerId的查询示例

$youtube->videos->update("snippet", $video , array('managedByMe'=>true,'onBehalfOfContentOwne'=>true,));

0 个答案:

没有答案
相关问题