댓글: listByBlog
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
모든 게시물에서 필터링되었을 수 있는 블로그 댓글을 검색합니다.
지금 사용해 보기
요청
HTTP 요청
GET https://www.googleapis.com/blogger/v3/blogs/blogId/comments
매개변수
매개변수 이름 |
가치 |
설명 |
필수 매개변수 |
blogId |
string |
댓글을 가져올 블로그의 ID입니다.
|
선택적 매개변수 |
endDate |
datetime |
가져올 주석의 마지막 날짜로, RFC 3339 형식의 날짜-시간입니다.
|
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 |
게시물의 댓글 목록입니다. |
|
사용해 보기
아래의 API 탐색기를 사용하여 실시간 데이터를 대상으로 이 메소드를 호출하고 응답을 확인해 보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-06-26(UTC)
[null,null,["최종 업데이트: 2024-06-26(UTC)"],[[["\u003cp\u003eRetrieves all comments for a specified blog, optionally filtered by date and other criteria.\u003c/p\u003e\n"],["\u003cp\u003eRequest parameters include \u003ccode\u003eblogId\u003c/code\u003e (required), and optional filters like \u003ccode\u003eendDate\u003c/code\u003e, \u003ccode\u003efetchBodies\u003c/code\u003e, \u003ccode\u003emaxResults\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003estartDate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides a list of comments, along with pagination tokens (\u003ccode\u003enextPageToken\u003c/code\u003e, \u003ccode\u003eprevPageToken\u003c/code\u003e) for navigating through results.\u003c/p\u003e\n"],["\u003cp\u003eThis method uses an HTTP GET request to the endpoint \u003ccode\u003ehttps://www.googleapis.com/blogger/v3/blogs/blogId/comments\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Comments: listByBlog\n\nRetrieves the comments for a blog, across all posts, possibly filtered.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/blogger/v3/blogs/blogId/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| **Optional parameters** |||\n| `endDate` | `datetime` | Latest date of comment to fetch, a date-time with RFC 3339 formatting. |\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 for a Post. | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]