博客
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
重要提示:我们将于 2024 年 9 月 30 日停止支持 v2.0 JSON API。
为了确保功能继续正常运行,请将依赖于 v2.0 JSON API 的应用更新为最新的 API 版本。如需获取最新版本,请使用左侧导航栏中的链接。
博客是 Blogger API 的根数据类。每个博客都包含一系列博文和网页,每篇博文都包含一系列评论。
资源表示法
“博客”资源包含博客的所有元数据,以及博文和网页子项的计数。
{
"kind": "blogger#blog",
"id": value,
"name": value,
"description": value,
"published": value,
"updated": value,
"url": value,
"selfLink": value,
"posts": {
"totalItems": value,
"selfLink": value
},
"pages": {
"totalItems": value,
"selfLink": value
},
"locale": {
"language": value,
"country": value,
"variant": value
}
}
属性名称 |
值 |
说明 |
备注 |
kind |
string |
此条目的类型。始终为 blogger#blog 。 |
|
id |
long |
此资源的标识符。 |
|
name |
string |
此博客的名称。此名称通常在 Blogger 中显示为博客的标题。可以包含 HTML。 |
|
description |
string |
此博客的说明。此信息通常显示在 Blogger 中博客标题下方。可以包含 HTML。 |
|
published |
datetime |
此博文发布时的 RFC 3339 日期时间。 |
|
updated |
datetime |
上次更新此博文时的 RFC 3339 日期时间。 |
|
url |
string |
此博客的发布网址。 |
|
selfLink |
string |
用于提取此资源的 API REST 网址。 |
|
posts |
object |
此博客的帖子的容器。 |
|
posts.totalItems |
integer |
此博客中的博文总数。 |
|
posts.selfLink |
string |
此博客的“Posts”集合网址。 |
|
pages |
object |
此博客页面的容器。 |
|
pages.totalItems |
integer |
此博客的网页总数。 |
|
pages.selfLink |
string |
此博客的“页面”集合的网址。 |
|
locale |
object |
此博客的语言区域设置。 |
|
locale.language |
string |
此博客的创作语言。 |
|
locale.country |
string |
此博客的语言区域设置为的国家/地区。 |
|
locale.variant |
string |
此博客所用语言的变体。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe v2.0 JSON API will be discontinued on September 30th, 2024, and users should update to the latest API version for continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eA Blog is the primary data structure containing Posts, Pages, and Comments, accessible through the Blogger API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eblogger.blogs.get\u003c/code\u003e method allows retrieval of individual Blog resources by their unique ID.\u003c/p\u003e\n"],["\u003cp\u003eEach Blog resource includes metadata like name, description, publication date, update date, URL, and counts of posts and pages.\u003c/p\u003e\n"],["\u003cp\u003eDetailed properties of a Blog resource, such as ID, name, description, publication and update timestamps, URL, and locale information, are available within the JSON response.\u003c/p\u003e\n"]]],[],null,["# Blogs\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.\nA Blog is the root data class for the Blogger API. Each blog has a series of [Posts](/blogger/docs/2.0/json/reference/posts) and [Pages](/blogger/docs/2.0/json/reference/pages), and each Post has a series of [Comments](/blogger/docs/2.0/json/reference/comments).\n\nMethods\n-------\n\nTo retrieve an individual [Blogs](/blogger/docs/2.0/json/reference/blogs#resource) Resource, use the [blogger.blogs.get](/blogger/docs/2.0/json/reference/blogs/get) method.\n\n[get](/blogger/docs/2.0/json/reference/blogs/get)\n: Gets one blog by id.\n\nResource Representations\n------------------------\n\nA Blogs Resource contains all the metadata for a blog, along with the counts of [Posts](/blogger/docs/2.0/json/reference/posts) and [Pages](/blogger/docs/2.0/json/reference/pages) children.\n\n```gdscript\n{\n \"kind\": \"blogger#blog\",\n \"id\": value,\n \"name\": value,\n \"description\": value,\n \"published\": value,\n \"updated\": value,\n \"url\": value,\n \"selfLink\": value,\n \"posts\": {\n \"totalItems\": value,\n \"selfLink\": value\n },\n \"pages\": {\n \"totalItems\": value,\n \"selfLink\": value\n },\n \"locale\": {\n \"language\": value,\n \"country\": value,\n \"variant\": value\n }\n}\n```\n\n| Property Name | Value | Description | Notes |\n|--------------------|------------|-------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entry. Always `blogger#blog`. | |\n| `id` | `long` | The identifier for this resource. | |\n| `name` | `string` | The name of this blog. This is usually displayed in Blogger as the blog's title. May include HTML. | |\n| `description` | `string` | The description of this blog. This is usually displayed in Blogger underneath the blog's title. May include HTML. | |\n| `published` | `datetime` | RFC 3339 date-time when this blog was published. | |\n| `updated` | `datetime` | RFC 3339 date-time when this blog was last updated. | |\n| `url` | `string` | The URL where this blog is published. | |\n| `selfLink` | `string` | The API REST URL to fetch this resource from. | |\n| `posts` | `object` | The container for this blog's posts. | |\n| posts.`totalItems` | `integer` | The total number of posts on this blog. | |\n| posts.`selfLink` | `string` | The URL of the Posts Collection for this blog. | |\n| `pages` | `object` | The container for this blog's pages. | |\n| pages.`totalItems` | `integer` | The total number of pages for this blog. | |\n| pages.`selfLink` | `string` | The URL of the Pages collection for this blog. | |\n| `locale` | `object` | The locale this blog is set to. | |\n| locale.`language` | `string` | The language this blog is authored in. | |\n| locale.`country` | `string` | The country this blog's locale is set to. | |\n| locale.`variant` | `string` | The language variant this blog is authored in. | |"]]