Youtube视频评论状态无法从“heldForReview”更改为任何其他状态

时间:2018-06-08 13:02:56

标签: youtube-api youtube-data-api

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

https://www.googleapis.com/youtube/v3/comments/setModerationStatus?id= {COMMENT_ID}&安培; moderationStatus = heldForReview&安培;关键= {} API_KEY

当我尝试将评论状态从“heldForReview”更改为“已发布”时(使用相同的上述API并发布了moderationStatus =)我收到以下错误

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

我还尝试使用Google开发者API资源管理器将评论状态从“heldForReview”更改为“已发布”,但收到同样的错误。

我真的很感激任何解决方案。

1 个答案:

答案 0 :(得分:0)

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

enter image description here

会将网址更改为:

https://www.youtube.com/watch?v=[ID]&lc=[ID]

使用lc的值来获得正确的ID,然后您将获得可以更改注释状态的成功请求。此外,您还必须使用OAuth 2.0进行请求授权。希望这会有所帮助。

相关问题