Youtube api Youtube视频评论状态可以';不能从“更改”;“heldForReview”;对任何其他人

Youtube api Youtube视频评论状态可以';不能从“更改”;“heldForReview”;对任何其他人,youtube-api,youtube-data-api,Youtube Api,Youtube Data Api,我尝试使用以下API将youtube视频评论状态从“已发布”更改为“heldForReview”,我成功更改了评论状态 {COMMENT_ID}&moderationStatus=heldForReview&key={API_key} 当我试图将注释状态从“heldForReview”更改为“published”(使用与上面相同的API,适度status=published)时,我收到了以下错误 { "error": { "errors": [ { "domain": "yo

我尝试使用以下API将youtube视频评论状态从“已发布”更改为“heldForReview”,我成功更改了评论状态

{COMMENT_ID}&moderationStatus=heldForReview&key={API_key}

当我试图将注释状态从“heldForReview”更改为“published”(使用与上面相同的API,适度status=published)时,我收到了以下错误

{
 "error": {
  "errors": [
   {
    "domain": "youtube.comment",
    "reason": "processingFailure",
    "message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid.",
    "locationType": "parameter",
    "location": "id"
   }
  ],
  "code": 400,
  "message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid."
 }
}
我还试图使用谷歌开发者API浏览器将评论的状态从“heldForReview”更改为“published”,但收到了相同的错误


我非常感谢任何解决方案。

这意味着您输入的ID无效。要正确获取注释ID,可以单击注释的日期

将url更改为以下内容:

https://www.youtube.com/watch?v=[ID]&lc=[ID]
使用lc的值来获得正确的ID,然后您将获得一个可以更改注释状态的成功请求。您还必须使用OAuth2.0进行请求授权。希望这有帮助