Nhận xét
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bình luận cho một tài nguyên bài đăng.
Để biết danh sách các phương thức cho tài nguyên này, hãy xem ở cuối trang.
Biểu diễn tài nguyên
{
"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
}
}
}
Tên tài sản |
Giá trị |
Nội dung mô tả |
Ghi chú |
kind |
string |
Loại tài nguyên này. Luôn là blogger#comment . |
|
id |
string |
Mã nhận dạng của tài nguyên này. |
|
post |
object |
Dữ liệu về bài đăng chứa nhận xét này. |
|
post.id |
string |
Giá trị nhận dạng của bài đăng chứa nhận xét này. |
|
blog |
object |
Dữ liệu về blog có chứa nhận xét này. |
|
blog.id |
string |
Giá trị nhận dạng của blog có chứa nhận xét này. |
|
published |
datetime |
RFC 3339 date-time ngày giờ khi nhận xét này được xuất bản, ví dụ: "2012-04-15T19:38:01-07:00". |
|
updated |
datetime |
RFC 3339 date-time khi nhận xét này được cập nhật lần gần đây nhất, đối với bài kiểm tra "2012-04-15T19:43:21-07:00". |
|
selfLink |
string |
URL của API Blogger để tìm nạp tài nguyên này. |
|
content |
string |
Nội dung của nhận xét, có thể bao gồm mã đánh dấu HTML. |
|
author |
object |
Tác giả của nhận xét này. |
|
author.id |
string |
Giá trị nhận dạng của người tạo bình luận. |
|
author.displayName |
string |
Tên hiển thị của người tạo bình luận. |
|
author.url |
string |
URL trang hồ sơ của người tạo bình luận. |
|
author.image |
object |
Vùng chứa URL hình đại diện của nhà sáng tạo. |
|
author.image.url |
string |
URL của hình đại diện của người tạo bình luận. |
|
inReplyTo |
object |
Dữ liệu về bình luận mà người dùng này phản hồi. |
|
inReplyTo.id |
string |
Mã gốc của nhận xét này. |
|
status |
string |
Trạng thái của nhận xét. Chỉ những người dùng có quyền Quản trị trên blog mới có thể thấy trạng thái này. |
|
Phương thức
Để truy xuất danh sách bình luận của một bài đăng, hãy sử dụng phương thức list (danh sách). Để truy xuất từng nhận xét, hãy sử dụng phương thức get.
- list
- Truy xuất danh sách bình luận cho một bài đăng.
- nhận
- Truy xuất một tài nguyên nhận xét bằng commentId của tài nguyên đó.
- phê duyệt
- Đánh dấu một nhận xét không phải là spam.
- xóa
- Xoá nhận xét theo mã nhận dạng.
- listByBlog
- Truy xuất nhận xét cho một blog, trên tất cả các bài đăng, có thể đã lọc.
- markAsSpam
- Đánh dấu một nhận xét là spam. Thao tác này sẽ đặt trạng thái của nhận xét thành
spam
và ẩn nhận xét trong chế độ hiển thị nhận xét mặc định.
- removeContent
- Xoá nội dung của nhận xét.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-06-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]