YouTube 동영상에 댓글을 달거나 게시하는 두 가지 방법이 있습니다. Comments: insert
및 CommentThreads: insert
설명 : 기존 메모에 회신 할 때 삽입이 사용됩니다.
POST https://www.googleapis.com/youtube/v3/comments?part=snippet&key={YOUR_API_KEY}
{
"snippet": {
"textOriginal": "YOUR_COMMENT",
"parentId": "The unique ID of the parent comment"
}
}
지금, 새로운 코멘트를 들어, CommentThreads을 사용 : 새로운 최상위 코멘트를 만들를 삽입합니다.
여기에 사용해야하는 요청이 있습니다.
POST https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&key={YOUR_API_KEY}
{
"snippet": {
"channelId": "channel Id of the video",
"topLevelComment": {
"snippet": {
"textOriginal": "YOUR_COMMENTS",
"videoId": "the Id of the video"
}
}
}
}
경우에만 videoId
아니라 당신이 원하는 곳에서 비디오의 channelId
을 알고 있다면
당신은 단지 인 videoId을 사용하여 채널 ID를 얻기 위해
Videos: list
을 사용할 수 있습니다, 의견을합니다.
참고 : 클릭하고 최신 의견을 볼 수 새로운 것부터 선택 API, 당신 필요성을 사용하여 게시 의견을 확인합니다.