使用下面的调用删除注释:
curl --location --request DELETE
'https://youtube.googleapis.com/youtube/v3/comments?id=Ugy3_0iu-ldT5YDxtKF4AaABAg&key=...'
--header 'Authorization: Bearer ...'
--header 'Accept: application/json'
删除注释。这个curl
中的评论ID是我可以删除的品牌评论。
但是如果我将它替换为粉丝评论ID:
UgzwMv7063oH0moz_654AaABAg
from permalink to the comment:
https://www.youtube.com/watch?v=mLRKpnrzkGc&lc=UgzwMv7063oH0moz_654AaABAg
我得到这个错误:
{
"error": {
"code": 400,
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the request's input is invalid.",
"errors": [
{
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the request's input is invalid.",
"domain": "youtube.comment",
"reason": "processingFailure",
"location": "id",
"locationType": "parameter"
}
]
}
}
链接中的id不一定与评论id相同。
你应该做一个注释。首先列出并找到您希望删除的评论,并使用其中的id来执行删除。