帖子

博文包含博文的 HTML 内容。 

方法

您可以使用 blogger.posts.list 方法检索博客的博文列表,以及使用 blogger.posts.get 方法检索单篇博文。 

list
检索帖子列表。
get
按 postId 检索一篇帖子。

资源表示

帖子资源包含博客中帖子的数据和元数据。

{
  "kind": "blogger#post",
  "id": long,
  "blog": {
    "id": long
  },
  "published": datetime,
  "updated": datetime,
  "url": string,
  "selfLink": string,
  "title": string,
  "content": string,
  "author": {
    "id": string,
    "displayName": string,
    "url": string,
    "image": {
      "url": string
    }
  },
  "replies": {
    "totalItems": long,
    "selfLink": string
  },
  "labels": [
    string
  ]
}
物业名称 说明 备注
kind string 此实体的种类。始终为 blogger#post
id long 此帖子的标识符。
blog object 包含此博文的博客的相关数据。
blog.id long 包含此博文的博客的标识符。
published datetime 帖子发布时间的 RFC 3339 日期时间。
updated datetime 上次更新此帖子时的 RFC 3339 日期时间。
url string 显示此博文的网址。
title string 帖子的标题。
content string 帖子的内容。可能包含 HTML 标记。
author object 此帖子的作者。
author.id string 帖子创建者的标识符。
author.displayName string 帖子创建者的显示名称。
author.url string 帖子创建者的“个人资料”页面的网址。
author.image object 帖子创建者的头像。
author.image.url string 帖子创建者的头像网址。
replies object 此信息评论的容器。
replies.totalItems long 此帖子的评论总数。
labels[] list 此帖子带有标签的列表。