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.
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ệ, chi tiết tiểu sử và những thông tin tương tự.
Để biết danh sách các phương thức cho tài nguyên này, hãy xem ở cuối trang.
Biểu diễn tài nguyên
{
"kind": "blogger#page",
"id": string,
"status": string,
"blog": {
"id": string
},
"published": datetime,
"updated": datetime,
"url": string,
"selfLink": string,
"title": string,
"content": string,
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
}
}
Tên tài sản |
Giá trị |
Nội dung mô tả |
Ghi chú |
kind |
string |
Loại thực thể này. Luôn là blogger#page . |
|
id |
string |
Mã 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 |
string |
Mã của blog chứa trang này. |
|
published |
datetime |
RFC 3339 date-time khi trang này được xuất bản. |
|
updated |
datetime |
RFC 3339 date-time khi trang này được cập nhật lần gần đây nhất. |
|
url |
string |
URL mà trang này hiển thị. |
|
selfLink |
string |
URL của API để 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ị trên giao diện người dùng quản trị. |
|
content |
string |
Nội dung nội dung của trang này, bằng HTML. |
|
author |
object |
Tác giả của trang này. |
|
author.id |
string |
Mã của người tạo trang. |
|
author.displayName |
string |
Tên hiển thị của người tạo trang. |
|
author.url |
string |
URL của trang Hồ sơ của người 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 người tạo trang. |
|
status |
string |
Trạng thái của trang cho các tài nguyên quản trị (LIVE hoặc DRAFT ). |
|
Phương thức
Để truy xuất danh sách các trang của 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 các trang cho một blog.
- nhận
- Truy xuất một tài nguyên trang theo mã trang.
- xóa
- Xoá một trang theo mã nhận dạng.
- chèn
- Thêm trang.
- bản vá
- Cập nhật một trang. Phương thức này hỗ trợ ngữ nghĩa của bản vá.
- cập nhật
- Cập nhật một 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-06-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-06-26 UTC."],[[["\u003cp\u003eBlogger pages are used to display static content like contact information and author bios.\u003c/p\u003e\n"],["\u003cp\u003ePages are represented as JSON objects with properties like \u003ccode\u003etitle\u003c/code\u003e, \u003ccode\u003econtent\u003c/code\u003e, \u003ccode\u003eauthor\u003c/code\u003e, and \u003ccode\u003estatus\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the Blogger API's \u003ccode\u003epages.list\u003c/code\u003e and \u003ccode\u003epages.get\u003c/code\u003e methods to retrieve page data.\u003c/p\u003e\n"],["\u003cp\u003eThe API also provides methods to manage pages, including \u003ccode\u003einsert\u003c/code\u003e, \u003ccode\u003eupdate\u003c/code\u003e, \u003ccode\u003epatch\u003c/code\u003e, and \u003ccode\u003edelete\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Pages are where blog owners put static information, such as contact information, bio details, and the like.\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n```text\n{\n \"kind\": \"blogger#page\",\n \"id\": string,\n \"status\": string,\n \"blog\": {\n \"id\": string\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` | `string` | The ID for this resource. | |\n| `blog` | `object` | Data about the blog containing this page. | |\n| blog.`id` | `string` | The ID of the blog containing this page. | |\n| `published` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this page was published. | |\n| `updated` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this page was last updated. | |\n| `url` | `string` | The URL where this page is displayed. | |\n| `selfLink` | `string` | The API URL to fetch this resource from. | |\n| `title` | `string` | The title of this page. This is the name displayed in the administration 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 ID 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. | |\n| `status` | `string` | The status of the page for admin resources (either `LIVE` or `DRAFT`). | |\n\nMethods\n-------\n\nTo retrieve a list of pages for a blog, you can use the [blogger.pages.list](/blogger/docs/3.0/reference/pages/list) method. To retrieve an individual page, you can use the [blogger.pages.get](/blogger/docs/3.0/reference/pages/get) method.\n\n[list](/blogger/docs/3.0/reference/pages/list)\n: Retrieves the list of [pages](/blogger/docs/3.0/reference/pages) for a [blog](/blogger/docs/3.0/reference/blogs#resource).\n\n[get](/blogger/docs/3.0/reference/pages/get)\n: Retrieves one pages resource by its page ID.\n\n[delete](/blogger/docs/3.0/reference/pages/delete)\n: Delete a page by ID.\n\n[insert](/blogger/docs/3.0/reference/pages/insert)\n: Add a page.\n\n[patch](/blogger/docs/3.0/reference/pages/patch)\n: Update a page. This method supports patch semantics.\n\n[update](/blogger/docs/3.0/reference/pages/update)\n: Update a page."]]