我在通过脚本呼叫https://www.googleapis.com/youtube/partner/v1/claimSearch时遇到了问题。以下是提示由于缺乏Content Owner而失败的部分响应。我们有多个帐户附加到一个电子邮件,我试着发送电子邮件地址以及一个帐户作为内容所有者,但仍然得到相同的错误。
'_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."
}
内容所有者是拥有资产集合权利的YouTube合作伙伴。并非所有人都可以使用内容ID API。它只适用于YouTube合作伙伴。https://developers.google.com/youtube/partner/identify_content_owner
注意:YouTube内容ID API仅供YouTube使用内容合作伙伴,并不是所有开发人员或所有人都可以访问YouTube的用户。如果您没有看到YouTube内容ID API之一在Google开发人员控制台中列出的服务,请参见www.youtube.com/partner以了解有关YouTube合作伙伴的更多信息程序。