更新时间:2023-02-14 13:58:08
您的 resourceId
不完整,因为它没有向 API 标识如何解释 videoId代码>参数.尝试设置
resourceId
的 kind
属性,如下所示:
Your resourceId
isn't complete, as it doesn't identify to the API how to interpret the videoId
parameter. Try setting the kind
attribute of the resourceId
, like this:
"snippet": {
"playlistId": "PL8hD12HFC-nuswc21_e64aPAy9B25sEH7",
"resourceId": {
"kind": "***#video",
"videoId": "KMGuyGY5gvY"
}
}
这样,API 就会知道在哪个域"(可以这么说)中定位由您发送的字符串标识的资源.
That way, the API will know in which 'domain' (so to speak) to locate the resource identified by the string you send in.