Trang
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.
Trang là nơi chủ sở hữu blog đặt thông tin tĩnh, chẳng hạn như thông tin liên hệ, thông tin chi tiết về tiểu sử, v.v.
Phương thức
Để truy xuất danh sách trang cho một blog, bạn có thể sử dụng phương thức blogger.pages.list. Để truy xuất một trang riêng lẻ, bạn có thể sử dụng phương thức blogger.pages.get.
- list
- Truy xuất danh sách Trang cho một Blog.
- get
- Truy xuất một Tài nguyên trang theo pageId của tài nguyên đó.
Biểu thị tài nguyên
{
"kind": "blogger#page",
"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
}
}
}
Tên thuộc tính |
Giá trị |
Mô tả |
Ghi chú |
kind |
string |
Loại thực thể này. Luôn là blogger#page . |
|
id |
long |
Giá trị nhận dạng của tài nguyên này. |
|
blog |
object |
Dữ liệu về blog chứa trang này. |
|
blog.id |
long |
Giá trị nhận dạng của blog chứa trang này. |
|
published |
datetime |
Ngày giờ theo RFC 3339 khi trang này được xuất bản. |
|
updated |
datetime |
Ngày-giờ theo RFC 3339 khi trang này được cập nhật gần đây nhất. |
|
url |
string |
URL nơi Trang này hiển thị. |
|
selfLink |
string |
URL API REST để tìm nạp tài nguyên này. |
|
title |
string |
Tiêu đề của trang này. Đây là tên hiển thị trong giao diện người dùng Quản trị. |
|
content |
string |
Nội dung của trang này, ở định dạng HTML. |
|
author |
object |
Tác giả của trang này. |
|
author.id |
string |
Giá trị nhận dạng của người tạo trang. |
|
author.displayName |
string |
Tên hiển thị của nhà sáng tạo trang. |
|
author.url |
string |
URL của trang Hồ sơ của nhà sáng tạo trang. |
|
author.image |
object |
Hình đại diện của người tạo trang. |
|
author.image.url |
string |
URL hình đại diện của nhà sáng tạo trang. |
|
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: 2024-12-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-21 UTC."],[[["\u003cp\u003eBlogger's v2.0 JSON API will be discontinued on September 30, 2024, requiring applications to update to the latest API version.\u003c/p\u003e\n"],["\u003cp\u003ePages in Blogger are used for static content such as contact information and bios.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eblogger.pages.list\u003c/code\u003e and \u003ccode\u003eblogger.pages.get\u003c/code\u003e methods retrieve a list of pages or an individual page respectively.\u003c/p\u003e\n"],["\u003cp\u003ePage resources include properties like ID, blog details, publication and update timestamps, URL, title, content, and author information.\u003c/p\u003e\n"]]],[],null,["# Pages\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.\nPages are where blog owners put static information, such as contact information, bio details, and the like.\n\nMethods\n-------\n\nTo retrieve a list of pages for a blog, you can use the [blogger.pages.list](/blogger/docs/2.0/json/reference/pages/list) method. To retrieve an individual page, you can use the [blogger.pages.get](/blogger/docs/2.0/json/reference/pages/get) method.\n\n[list](/blogger/docs/2.0/json/reference/pages/list)\n: Retrieves the list of [Pages](/blogger/docs/2.0/json/reference/pages) for a [Blog](/blogger/docs/2.0/json/reference/blogs#resource).\n\n[get](/blogger/docs/2.0/json/reference/pages/get)\n: Retrieves one Pages Resource by its pageId.\n\nResource Representations\n------------------------\n\n\u003cbr /\u003e\n\n```text\n{\n \"kind\": \"blogger#page\",\n \"id\": long,\n \"blog\": {\n \"id\": long\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"url\": string,\n \"selfLink\": string,\n \"title\": 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 entity. Always `blogger#page`. | |\n| `id` | `long` | The identifier for this resource. | |\n| `blog` | `object` | Data about the blog containing this page. | |\n| blog.`id` | `long` | The identifier of the blog containing this page. | |\n| `published` | `datetime` | RFC 3339 date-time when this page was published. | |\n| `updated` | `datetime` | RFC 3339 date-time when this page was last updated. | |\n| `url` | `string` | The URL where this Page is displayed. | |\n| `selfLink` | `string` | The API REST URL to fetch this resource from. | |\n| `title` | `string` | The title of this page. This is the name displayed in the Admin user interface. | |\n| `content` | `string` | The body content of this page, in HTML. | |\n| `author` | `object` | The author of this page. | |\n| author.`id` | `string` | The identifier of the page creator. | |\n| author.`displayName` | `string` | The page creator's display name. | |\n| author.`url` | `string` | The URL of the page creator's Profile page. | |\n| author.`image` | `object` | The page creator's avatar. | |\n| author.image.`url` | `string` | The page creator's avatar URL. | |"]]