我正在尝试删除 id 值为
的评论z13gwx5polebffepe04ch34zhmvfg1czqlo0k.
请求返回以下错误:
{"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 端点来删除回复其他评论的评论,或者是否有其他参数需要一起发送?从文档来看,只有 id 似乎是一个有效参数。
最佳答案
要删除任何评论,您必须是该评论的评论者,或者您必须是已发表评论的视频的所有者。如果不是,则无法删除该评论。转到 https://developers.google.com/youtube/v3/docs/comments/delete并找到你自己。
关于youtube-data-api - 无法使用 Youtube API V3 删除回复另一条评论的评论,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31714875/