설명: list
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
중요:
2024년 9월 30일부터 v2.0 JSON API에 대한 지원이 중단됩니다.
기능을 계속 사용하려면 v2.0 JSON API를 사용하는 애플리케이션을 최신 API 버전으로 업데이트하세요. 최신 버전에서는 왼쪽 탐색 메뉴의 링크를 사용하세요.
게시물의 댓글 목록을 검색합니다.
지금 사용해 보세요.
비공개 블로그에 댓글이 올라온 경우 인증이 필요합니다. 댓글이 공개 상태인 블로그에 있는 경우 인증 없이 이 메서드를 호출할 수 있습니다.
요청
HTTP 요청
GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts/postId/comments
매개변수
매개변수 이름 |
값 |
설명 |
필수 매개변수 |
blogId |
string |
댓글을 가져올 블로그의 ID입니다.
|
postId |
string |
게시물을 가져올 게시물의 ID입니다.
|
선택적 매개변수 |
fetchBodies |
boolean |
댓글의 본문 콘텐츠 포함 여부입니다.
|
maxResults |
unsigned integer |
결과에 포함할 최대 댓글 수입니다.
|
pageToken |
string |
요청이 페이징된 경우 연속 토큰입니다.
|
startDate |
datetime |
가져올 주석의 가장 이른 날짜로, RFC 3339 형식의 날짜/시간입니다.
|
요청 본문
이 메소드를 사용할 때는 요청 본문을 제공하지 마세요.
응답
요청에 성공할 경우 이 메소드는 다음과 같은 구조의 응답 본문을 반환합니다.
{
"kind": "blogger#commentList",
"nextPageToken": string,
"prevPageToken": string,
"items": [
comments Resource
]
}
속성 이름 |
값 |
설명 |
Notes |
kind |
string |
이 항목의 종류입니다. 항상 blogger#commentList 입니다. |
|
nextPageToken |
string |
다음 페이지가 있는 경우 가져오기 위한 페이지로 나누기 토큰입니다. |
|
prevPageToken |
string |
이전 페이지가 있는 경우 가져올 페이지로 나누기 토큰입니다. |
|
items[] |
list |
지정된 게시물의 댓글 리소스 목록입니다. |
|
사용해 보기
아래의 익스플로러를 이용해 라이브 데이터에서 이 메서드를 호출하고 응답을 확인해 보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-06-26(UTC)
[null,null,["최종 업데이트: 2024-06-26(UTC)"],[[["\u003cp\u003eBlogger API v2.0 will be discontinued on September 30, 2024; migrate to the latest version for continued support.\u003c/p\u003e\n"],["\u003cp\u003eThis endpoint retrieves a list of comments for a specific blog post, requiring authentication only for private blogs.\u003c/p\u003e\n"],["\u003cp\u003eRequest parameters allow filtering by date, limiting results, and including comment bodies.\u003c/p\u003e\n"],["\u003cp\u003eResponses include pagination tokens for navigating through results and a list of comment resources.\u003c/p\u003e\n"],["\u003cp\u003eA "Try It!" feature allows users to experiment with the method using live data.\u003c/p\u003e\n"]]],[],null,["# Comments: list\n\n**Important**:\nWe will discontinue support for the v2.0 JSON API on September 30th, 2024.\nTo ensure continued functionality, update your applications that rely on the v2.0 JSON API\nto the latest API version. For the latest version, use the links in the left-side navbar.\n\nRetrieves the list of [Comments](/blogger/docs/2.0/json/reference/comments) for a [Post](/blogger/docs/2.0/json/reference/posts).\n[Try it now](#try-it).\n\nAuthentication is required if the comments are on a blog that is private. If the comments are on a blog that is public, then this method can be called without authentication.\n\nRequest\n-------\n\n### HTTP Request\n\n```\nGET https://www.googleapis.com/blogger/v2/blogs/blogId/posts/postId/comments\n```\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|----------------|--------------------|--------------------------------------------------------------------------|\n| **Required Parameters** |||\n| `blogId` | `string` | ID of the blog to fetch comments from. |\n| `postId` | `string` | ID of the post to fetch posts from. |\n| **Optional Parameters** |||\n| `fetchBodies` | `boolean` | Whether the body content of the comments is included. |\n| `maxResults` | `unsigned integer` | Maximum number of comments to include in the result. |\n| `pageToken` | `string` | Continuation token if request is paged. |\n| `startDate` | `datetime` | Earliest date of comment to fetch, a date-time with RFC 3339 formatting. |\n\n### Request Body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"kind\": \"blogger#commentList\",\n \"nextPageToken\": string,\n \"prevPageToken\": string,\n \"items\": [\n comments Resource\n ]\n}\n```\n\n| Property Name | Value | Description | Notes |\n|-----------------|----------|-------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entry. Always `blogger#commentList`. | |\n| `nextPageToken` | `string` | Pagination token to fetch the next page, if one exists. | |\n| `prevPageToken` | `string` | Pagination token to fetch the previous page, if one exists. | |\n| `items[]` | `list` | The list of Comments Resources for the specified post. | |\n\nTry It!\n-------\n\n\nUse the explorer below to call this method on live data and see the response."]]