评论
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
重要提示:我们将于 2024 年 9 月 30 日停止支持 v2.0 JSON API。
为了确保功能继续正常运行,请将依赖于 v2.0 JSON API 的应用更新为最新的 API 版本。如需获取最新版本,请使用左侧导航栏中的链接。
资源表示法
Comments 资源包含帖子评论的数据。
{
"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
}
}
}
属性名称 |
值 |
说明 |
备注 |
kind |
string |
此条目的类型。始终为 blogger#comment 。 |
|
id |
long |
此资源的标识符。 |
|
post |
object |
包含此评论的帖子的数据。 |
|
post.id |
long |
包含此评论的帖子的标识符。 |
|
blog |
object |
包含此评论的博客的数据。 |
|
blog.id |
long |
包含此评论的博客的标识符。 |
|
published |
datetime |
此评论的发布时间(采用 RFC 3339 格式)。 |
|
updated |
datetime |
上次更新此评论的时间(采用 RFC 3339 格式)。 |
|
selfLink |
string |
用于提取此资源的 API REST 网址。 |
|
content |
string |
评论的实际内容。可以包含 HTML 标记。 |
|
author |
object |
此评论的作者。 |
|
author.id |
string |
评论创建者的标识符。 |
|
author.displayName |
string |
评论创作者的显示名称。 |
|
author.url |
string |
评论创建者的个人资料页面的网址。 |
|
author.image |
object |
用于存放创作者头像网址的容器。 |
|
author.image.url |
string |
评论创作者的头像图片的网址。 |
|
inReplyTo |
object |
与此评论所回复的评论相关的数据。 |
|
inReplyTo.id |
long |
此评论的父级的标识符。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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. | |"]]