gpt4 book ai didi

api - 创作 Assets Assets 时出现Youtube数据API(内容ID)错误

转载 作者:行者123 更新时间:2023-12-03 06:18:39 25 4
gpt4 key购买 nike

我们的应用已投入生产2年,并且能够使用YT数据API请求创建所有3种音乐视频 Assets (音乐视频,录音和音乐作品)。从上周开始,我们收到关于 Assets 组合创建请求的错误。音乐视频和录音 Assets 创建请求正常运行。

YT API错误:

vagrant$ curl -X POST -H "content-type: application/json" -H "user-agent: Yt::Request (gzip)" -H "authorization: Bearer ya29.XXXXXXXX_O3pRQWtbrQ5dHn5BV6SiiGxkawq26LksyUy1LjwtG27Vs9e9-XXXX" -H "host: www.googleapis.com" -H "content-length: 193" -d '{"type":"composition","onBehalfOfContentOwner":"xxxxxxxxxxxxxxxx","metadataMine":{"customId":"9c3e6533a06cac4e","writer":["DeAndre \"Drizzo Man\" White, Daniel Kováč"],"title":"Ready"}}' "https://www.googleapis.com/youtube/partner/v1/assets?onBehalfOfContentOwner=xxxxxxxxxxxxxxxx"
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Forbidden"
}
}

最佳答案

documentation YouTube数据API-错误中指出,forbidden (403) error表示:

forbidden (403) - Access forbidden. The request may not be properly authorized.



因此,请尝试检查您是否在项目中正确实现了 OAuth authorization

关于api - 创作 Assets Assets 时出现Youtube数据API(内容ID)错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39518691/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com