帖子资源的备注。
有关此类资源的方法列表,请参阅本页面的结尾部分。
资源表示法
{ "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 } } }
属性名称 | 值 | 说明 | 备注 |
---|---|---|---|
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 网址。 | |
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 |
string |
此注释的父级的 ID。 | |
status |
string |
评论的状态。状态仅对拥有博客管理员权限的用户可见。 |
方法
要检索博文的评论列表,请使用 list 方法。要检索个别评论,请使用 get 方法。
- list
- 检索帖子的评论列表。
- get
- 按
commentId 检索一个评论资源。 - 批准
- 将评论标记为非垃圾评论。
- delete
- 按 ID 删除评论。
- listByblog
- 检索博客在所有博文中的评论,可能是过滤后的。
- markAsSpam
- 将评论标记为垃圾评论。这会将评论的状态设置为
spam
,并隐藏在默认评论呈现中。 - 移除内容
- 移除评论内容。