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.
Lưu ý quan trọng: Chúng tôi sẽ ngừng hỗ trợ API JSON phiên bản 2.0 từ ngày 30 tháng 9 năm 2024.
Để đảm bảo ứng dụng của bạn vẫn hoạt động bình thường, hãy cập nhật những ứng dụng có dùng API JSON phiên bản 2.0 lên phiên bản API mới nhất. Đối với phiên bản mới nhất, hãy sử dụng các đường liên kết trong thanh điều hướng bên trái.
Biểu thị tài nguyên
Tài nguyên bình luận chứa dữ liệu về một bình luận trên một bài đăng.
{
"kind": "blogger#comment",
"id": long,
"inReplyTo": {
"id": long
},
"post": {
"id": long
},
"blog": {
"id": long
},
"published": datetime,
"updated": datetime,
"selfLink": string,
"content": string,
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
}
}
Tên thuộc tính |
Giá trị |
Mô tả |
Ghi chú |
kind |
string |
Loại mục này. Luôn là blogger#comment . |
|
id |
long |
Giá trị nhận dạng của tài nguyên này. |
|
post |
object |
Dữ liệu về bài đăng chứa bình luận này. |
|
post.id |
long |
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 chứa bình luận này. |
|
blog.id |
long |
Giá trị nhận dạng của blog chứa bình luận này. |
|
published |
datetime |
Ngày giờ theo định dạng RFC 3339 khi nhận xét này được xuất bản. |
|
updated |
datetime |
Ngày giờ theo định dạng RFC 3339 của lần cập nhật gần đây nhất đối với bình luận này. |
|
selfLink |
string |
URL API REST để tìm nạp tài nguyên này. |
|
content |
string |
Nội dung thực tế của bình luận. Có thể bao gồm mã đánh dấu HTML. |
|
author |
object |
Tác giả của bình luận 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 của 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à bình luận này trả lời. |
|
inReplyTo.id |
long |
Mã nhận dạng của bình luận mẹ của bình luận này. |
|
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: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eSupport for the v2.0 JSON API will be discontinued on September 30th, 2024.\u003c/p\u003e\n"],["\u003cp\u003eUpdate your applications to the latest API version to ensure continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003eblogger.comments.list\u003c/code\u003e method to retrieve a list of comments for a post and the \u003ccode\u003eblogger.comments.get\u003c/code\u003e method to retrieve an individual comment.\u003c/p\u003e\n"],["\u003cp\u003eThe Comments Resource provides detailed information about a comment, including its content, author, and timestamps.\u003c/p\u003e\n"]]],[],null,["# Comments\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.\nThe comments for a [Posts](/blogger/docs/2.0/json/reference/posts) Resource.\n\nMethods\n-------\n\nTo retrieve a list of comments for a post, use the [blogger.comments.list](/blogger/docs/2.0/json/reference/comments/list) method. To retrieve an individual comment, use the [blogger.comments.get](/blogger/docs/2.0/json/reference/comments/get) method.\n\n[list](/blogger/docs/2.0/json/reference/comments/list)\n: Retrieves the list of [Comments](/blogger/docs/2.0/json/reference/comments) for a [Post](/blogger/docs/2.0/json/reference/posts).\n\n[get](/blogger/docs/2.0/json/reference/comments/get)\n: Retrieves one Comments Resource by its commentId.\n\nResource Representations\n------------------------\n\nThe Comments Resource contains the data for a comment on a post.\n\n```text\n{\n \"kind\": \"blogger#comment\",\n \"id\": long,\n \"inReplyTo\": {\n \"id\": long\n },\n \"post\": {\n \"id\": long\n },\n \"blog\": {\n \"id\": long\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 entry. Always `blogger#comment`. | |\n| `id` | `long` | The identifier for this resource. | |\n| `post` | `object` | Data about the post containing this comment. | |\n| post.`id` | `long` | The identifier of the post containing this comment. | |\n| `blog` | `object` | Data about the blog containing this comment. | |\n| blog.`id` | `long` | The identifier of the blog containing this comment. | |\n| `published` | `datetime` | RFC 3339 date-time when this comment was published. | |\n| `updated` | `datetime` | RFC 3339 date-time when this comment was last updated. | |\n| `selfLink` | `string` | The API REST URL to fetch this resource from. | |\n| `content` | `string` | The actual content of the comment. May 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` | `long` | The identified of the parent of this comment. | |"]]