gpt4 book ai didi

Youtube API : Comment Insert 403 forbidden insufficient permissions

转载 作者:行者123 更新时间:2023-12-02 17:08:40 30 4
gpt4 key购买 nike

我正在使用 https://developers.google.com/youtube/v3/docs/commentThreads/insert 底部的 API 浏览器来测试这个调用。我正在请求范围 https://www.googleapis.com/auth/youtube.force-ssl 。感谢任何帮助!

请求:

POST https://www.googleapis.com/youtube/v3/commentThreads?part=id%2Csnippet&fields=id&key={YOUR_API_KEY}
{
"snippet": {
"topLevelComment": {
"snippet": {
"textOriginal": "comment from gdev"
}
},
"videoId": "B5BypNLbBgQ",
"channelId": "UCNqqFgLtbSjc9Er7XFv4wbA"
}
}

回应:

{
"error": {
"errors": [
{
"domain": "youtube.commentThread",
"reason": "forbidden",
"message": "The comment thread could not be created due to insufficient permissions. The request might not be properly authorized.",
"locationType": "other",
"location": "body"
}
],
"code": 403,
"message": "The comment thread could not be created due to insufficient permissions. The request might not be properly authorized."
}
}

最佳答案

该视频是私有(private)视频......在公共(public)视频上效果很好。

关于Youtube API : Comment Insert 403 forbidden insufficient permissions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35047038/

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