Youtube API内容所有者错误

时间:2015-07-10 13:42:31

标签: youtube-api

我在通过脚本调用https://www.googleapis.com/youtube/partner/v1/claimSearch时遇到问题。以下是部分响应,表明由于缺少内容所有者而导致失败。我们在一封电子邮件中附加了多个帐户,我尝试将该电子邮件地址以及该帐户之一作为内容所有者发送,但仍然收到相同的错误。

'_msg' => 'Bad Request',
'_request' => bless( {
'_content' => '',
'_uri' => bless( do{\(my $o ='https://www.googleapis.com/youtube/partner/v1/claimSearch')}, 'URI::https' ),
'_headers' => bless( {
'user-agent' => 'libwww-perl/6.03',
'videoid' => 'MjMpgVRZjqU', 
'contentowner' => 'tunesat_music_label',
'onbehalfofcontentowner' => '5qo5EmXXXXXX',
'authorization' => 'Bearer ya29.qwHkgGH2obX6GOS7oNItTlVSN822K4hKxhNSjZQCWyo2vp1zPvYGMzivKf7XZA_5Ath0UqjvAqZRqA',
'key' => 'AIzaSyBCXXXXXX'
}, 'HTTP::Headers' ),
'_method' => 'GET',
'_uri_canonical' => $VAR1->{'_request'}{'_uri'}
}, 'HTTP::Request' )




"error": {
"errors": [
{
"domain": "youtubePartner",
"reason": "contentOwnerNotProvided",
"message": "Content owner was not provided. If you manage multiple content     owner accounts, you must specify one content owner in each request."
}
],
"code": 400,
"message": "Content owner was not provided. If you manage multiple content owner accounts, you must specify one content owner in each request."
}

1 个答案:

答案 0 :(得分:0)

内容所有者是拥有资产集合权限的YouTube合作伙伴。每个人都无法使用Content ID API。它仅适用于YouTube合作伙伴。 https://developers.google.com/youtube/partner/identify_content_owner

  

注意:YouTube Content ID API供YouTube使用   内容合作伙伴,并非所有开发人员或所有人都可以访问   YouTube用户。如果您没有将YouTube Content ID API视为其中一个   Google Developers Console中列出的服务,请参阅   www.youtube.com/partner了解有关YouTube合作伙伴的更多信息   程序