youtube-data-api - 无法使用 Youtube API V3 删除回复另一条评论的评论

标签 youtube-data-api

我正在尝试删除 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/

相关文章:

php - 使用 YouTube API 将视频上传到 1 个以上的 channel

ios - 如何将youtube集成到ios应用程序中?

android - YouTube 数据 API v3 身份验证错误

youtube - 如何以编程方式检测特定的youtube用户是否启用了实时流

android - 如何将 youtube 搜索添加到 Android 应用程序

java - 将 Youtube Data API V3 视频持续时间转换为 hh :mm:ss format in java?

android - YouTubeAndroidPlayerAPI 无法播放某些视频

youtube-api - YouTube 数据 API v3 搜索丢失的视频

youtube - Youtube Api搜索结果出现引号错误

google-api - 谷歌 API : Quota Limit Reset Times and Timezone