Youtube API:注释插入403禁止权限不足

Youtube API:注释插入403禁止权限不足,youtube,youtube-api,youtube-data-api,Youtube,Youtube Api,Youtube Data Api,我正在使用位于底部的API资源管理器来测试此调用。我要求的范围。谢谢你的帮助 请求: POST https://www.googleapis.com/youtube/v3/commentThreads?part=id%2Csnippet&fields=id&key={YOUR_API_KEY} { "snippet": { "topLevelComment": { "snippet": { "textOriginal": "comment from gdev"

我正在使用位于底部的API资源管理器来测试此调用。我要求的范围。谢谢你的帮助

请求:

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."
 }
}

视频是私人的。。。。在一段公开视频中表现良好

我也有类似的问题。我需要在标题中设置令牌。请求机构需要具备:

part: "snippet"
我认为您还需要设置以下标题:

Authorization: 'Bearer ' + access_token

我上传了一个视频,默认情况下评论被禁用。一旦我更改为“允许所有评论”,我就可以通过API发布。

不为我工作:我仍然存在此权限问题。不为我工作: