댓글
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
posts 리소스의 댓글입니다.
이 리소스에 대한 메소드 목록은 이 페이지의 하단에 나와 있습니다.
리소스 표현
{
"kind": "blogger#comment",
"status": string,
"id": string,
"inReplyTo": {
"id": string
},
"post": {
"id": string
},
"blog": {
"id": string
},
"published": datetime,
"updated": datetime,
"selfLink": string,
"content": string,
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
}
}
속성 이름 |
가치 |
설명 |
Notes |
kind |
string |
이 리소스의 종류입니다. 항상 blogger#comment 입니다. |
|
id |
string |
이 리소스의 ID입니다. |
|
post |
object |
이 댓글이 포함된 게시물에 대한 데이터입니다. |
|
post.id |
string |
이 댓글이 포함된 게시물의 식별자입니다. |
|
blog |
object |
이 댓글이 포함된 블로그에 대한 데이터입니다. |
|
blog.id |
string |
이 댓글이 포함된 블로그의 식별자입니다. |
|
published |
datetime |
RFC 3339 date-time 이 댓글이 게시된 날짜/시간입니다(예: '2012-04-15T19:38:01-07:00'). |
|
updated |
datetime |
RFC 3339 date-time 에 이 댓글이 마지막으로 업데이트된 날짜입니다(예: '2012-04-15T19:43:21-07:00'). |
|
selfLink |
string |
이 리소스를 가져올 Blogger API URL입니다. |
|
content |
string |
HTML 마크업을 포함할 수 있는 주석의 콘텐츠입니다. |
|
author |
object |
이 댓글의 작성자입니다. |
|
author.id |
string |
댓글 작성자의 식별자입니다. |
|
author.displayName |
string |
댓글 작성자의 표시 이름입니다. |
|
author.url |
string |
댓글 작성자의 프로필 페이지의 URL입니다. |
|
author.image |
object |
크리에이터의 아바타 URL의 컨테이너입니다. |
|
author.image.url |
string |
댓글 작성자의 아바타 이미지 URL입니다. |
|
inReplyTo |
object |
답글을 단 댓글에 대한 데이터입니다. |
|
inReplyTo.id |
string |
이 댓글의 상위 항목 ID입니다. |
|
status |
string |
댓글의 상태입니다. 상태는 블로그에 대해 관리 권한이 있는 사용자에게만 표시됩니다. |
|
방법
게시물의 댓글 목록을 검색하려면 list 메서드를 사용합니다. 개별 댓글을 검색하려면 get 메서드를 사용합니다.
- list
- 게시물의 댓글 목록을 검색합니다.
- get
- commentId를 기준으로 댓글 리소스 하나를 검색합니다.
- 승인
- 댓글을 스팸이 아닌 것으로 표시합니다.
- 삭제
- ID로 댓글 삭제
- listByBlog
- 모든 게시물에서 필터링되었을 수 있는 블로그 댓글을 검색합니다.
- markAsSpam
- 댓글을 스팸으로 표시합니다. 이렇게 하면 댓글 상태가
spam
로 설정되고 기본 댓글 렌더링에서 숨겨집니다.
- removeContent
- 댓글의 내용을 삭제합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-06-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-06-26(UTC)"],[[["\u003cp\u003eThis page provides details on the resource representation for Blogger comments, including properties like author, content, and publication date.\u003c/p\u003e\n"],["\u003cp\u003eYou can use methods like \u003ccode\u003elist\u003c/code\u003e and \u003ccode\u003eget\u003c/code\u003e to retrieve comments for posts.\u003c/p\u003e\n"],["\u003cp\u003eAdditional methods allow for managing comments, such as approving, deleting, and marking as spam.\u003c/p\u003e\n"],["\u003cp\u003eThe resource representation is presented in JSON format with detailed descriptions of each property.\u003c/p\u003e\n"],["\u003cp\u003eComments can be associated with a specific post and blog, identifiable by their respective IDs.\u003c/p\u003e\n"]]],[],null,["# Comments\n\nThe comments for a [posts](/blogger/docs/3.0/reference/posts) resource.\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n```text\n{\n \"kind\": \"blogger#comment\",\n \"status\": string,\n \"id\": string,\n \"inReplyTo\": {\n \"id\": string\n },\n \"post\": {\n \"id\": string\n },\n \"blog\": {\n \"id\": string\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"selfLink\": string,\n \"content\": string,\n \"author\": {\n \"id\": string,\n \"displayName\": string,\n \"url\": string,\n \"image\": {\n \"url\": string\n }\n }\n}\n```\n\n| Property name | Value | Description | Notes |\n|----------------------|------------|-------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this resource. Always `blogger#comment`. | |\n| `id` | `string` | The ID for this resource. | |\n| `post` | `object` | Data about the post containing this comment. | |\n| post.`id` | `string` | The identifier of the post containing this comment. | |\n| `blog` | `object` | Data about the blog containing this comment. | |\n| blog.`id` | `string` | The identifier of the blog containing this comment. | |\n| `published` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` date-time when this comment was published, for example \"2012-04-15T19:38:01-07:00\". | |\n| `updated` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this comment was last updated, for example \"2012-04-15T19:43:21-07:00\". | |\n| `selfLink` | `string` | The Blogger API URL to fetch this resource from. | |\n| `content` | `string` | The content of the comment, which can include HTML markup. | |\n| `author` | `object` | The author of this comment. | |\n| author.`id` | `string` | The identifier of the comment creator. | |\n| author.`displayName` | `string` | The comment creator's display name. | |\n| author.`url` | `string` | The URL of the comment creator's profile page. | |\n| author.`image` | `object` | The container for the creator's avatar URL. | |\n| author.image.`url` | `string` | The URL of the comment creator's avatar image. | |\n| `inReplyTo` | `object` | Data about the comment this is in reply to. | |\n| inReplyTo.`id` | `string` | The ID of the parent of this comment. | |\n| `status` | `string` | The status of the comment. The status is only visible to users who have Administration rights on a blog. | |\n\nMethods\n-------\n\nTo retrieve a list of comments for a post, use the [list](/blogger/docs/3.0/reference/comments/list) method. To retrieve an individual comment, use the [get](/blogger/docs/3.0/reference/comments/get) method.\n\n[list](/blogger/docs/3.0/reference/comments/list)\n: Retrieves the list of [comments](/blogger/docs/3.0/reference/comments) for a [post](/blogger/docs/3.0/reference/posts).\n\n[get](/blogger/docs/3.0/reference/comments/get)\n: Retrieves one comment resource by its commentId.\n\n[approve](/blogger/docs/3.0/reference/comments/approve)\n: Marks a comment as not spam.\n\n[delete](/blogger/docs/3.0/reference/comments/delete)\n: Delete a comment by ID.\n\n[listByBlog](/blogger/docs/3.0/reference/comments/listByBlog)\n: Retrieves the comments for a blog, across all posts, possibly filtered.\n\n[markAsSpam](/blogger/docs/3.0/reference/comments/markAsSpam)\n: Marks a comment as spam. This will set the status of the comment to `spam`, and hide it in the default comment rendering.\n\n[removeContent](/blogger/docs/3.0/reference/comments/removeContent)\n: Removes the content of a comment."]]