โพสต์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากรโพสต์มีเนื้อหา HTML ของบล็อกโพสต์ รวมถึงข้อมูลเมตาของโพสต์
ดูรายการวิธีการสําหรับแหล่งข้อมูลนี้ได้ที่ท้ายหน้า
การนําเสนอทรัพยากร
{
"kind": "blogger#post",
"id": string,
"blog": {
"id": string
},
"published": datetime,
"updated": datetime,
"url": string,
"selfLink": string,
"title": string,
"titleLink": string,
"content": string,
"images": [
{
"url": string
}
],
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
},
"replies": {
"totalItems": long,
"selfLink": string,
"items": [
comments Resource
]
},
"labels": [
string
],
"location": {
"name": string,
"lat": double,
"lng": double,
"span": string
},
"status": string
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
หมายเหตุ |
kind |
string |
ประเภทของเอนทิตีนี้ blogger#post เสมอ |
|
id |
string |
รหัสของโพสต์นี้ |
|
blog |
object |
ข้อมูลเกี่ยวกับบล็อกที่มีโพสต์นี้ |
|
blog.id |
string |
รหัสของบล็อกที่มีโพสต์นี้ |
|
published |
datetime |
RFC 3339 date-time เมื่อมีการเผยแพร่โพสต์นี้ |
|
updated |
datetime |
RFC 3339 date-time เมื่อมีการอัปเดตโพสต์นี้ครั้งล่าสุด |
|
url |
string |
URL ที่โพสต์นี้แสดง |
|
selfLink |
string |
URL ของ Blogger API ที่จะดึงข้อมูลทรัพยากรนี้ |
|
title |
string |
ชื่อโพสต์ |
|
content |
string |
เนื้อหาของโพสต์ มีมาร์กอัป HTML ได้ |
|
author |
object |
ผู้เขียนโพสต์นี้ |
|
author.id |
string |
รหัสของผู้สร้างโพสต์ |
|
author.displayName |
string |
ชื่อที่แสดงของผู้สร้างโพสต์ |
|
author.url |
string |
URL ของหน้าโปรไฟล์ของครีเอเตอร์โพสต์ |
|
author.image |
object |
รูปโปรไฟล์ของผู้สร้างโพสต์ |
|
author.image.url |
string |
URL ของรูปโปรไฟล์ครีเอเตอร์โพสต์ |
|
replies |
object |
คอนเทนเนอร์สำหรับความคิดเห็นของโพสต์นี้ |
|
replies.totalItems |
long |
จำนวนความคิดเห็นทั้งหมดในโพสต์นี้ |
|
replies.selfLink |
string |
URL ของ Blogger API สำหรับการดึงข้อมูลความคิดเห็นของโพสต์นี้ |
|
labels[] |
list |
รายการป้ายกำกับที่ติดแท็กในโพสต์นี้ |
|
replies.items[] |
list |
รายการความคิดเห็นสำหรับโพสต์นี้ |
|
location |
object |
สถานที่ตั้ง หากโพสต์นี้มีการติดแท็กตำแหน่ง |
|
location.name |
string |
ชื่อสถานที่ตั้ง |
|
location.lat |
double |
ละติจูดของสถานที่ |
|
location.lng |
double |
ลองจิจูดของสถานที่ |
|
location.span |
string |
ช่วงของวิวพอร์ตของสถานที่ ใช้เมื่อแสดงผลตัวอย่างแผนที่ได้ |
|
titleLink |
string |
URL ของลิงก์ชื่อ ซึ่งคล้ายกับลิงก์ที่เกี่ยวข้องของ Atom |
|
images[] |
list |
แสดงรูปภาพสำหรับโพสต์ |
|
images[].url |
string |
|
|
status |
string |
สถานะของโพสต์ ตั้งค่าสําหรับคําขอระดับผู้ดูแลระบบเท่านั้น |
|
เมธอด
คุณสามารถดึงข้อมูลรายการโพสต์ของบล็อกได้โดยใช้เมธอด list และดึงข้อมูลโพสต์แต่ละรายการได้โดยใช้เมธอด get
- list
- ดึงข้อมูลรายการโพสต์
- get
- ดึงข้อมูลโพสต์ 1 รายการตามรหัสโพสต์
- search
- ค้นหาโพสต์ที่ตรงกับข้อความค้นหาที่ระบุ
- แทรก
- เพิ่มโพสต์
- ลบ
- ลบโพสต์ตามรหัส
- getByPath
- ดึงข้อมูลโพสต์ตามเส้นทาง
- patch
- อัปเดตโพสต์ วิธีนี้รองรับความหมายของการปะแก้
- update
- อัปเดตโพสต์
- publish
- เผยแพร่โพสต์ฉบับร่าง
- เปลี่ยนกลับ
- เปลี่ยนสถานะโพสต์ที่เผยแพร่หรือตั้งเวลาไว้เป็นฉบับร่าง ซึ่งจะนำโพสต์ออกจากเนื้อหาที่ผู้ใช้ทั่วไปดูได้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-05-15 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-05-15 UTC"],[[["\u003cp\u003eA posts resource stores a blog post's HTML content and metadata, such as title, author, and publication date.\u003c/p\u003e\n"],["\u003cp\u003eThe resource representation includes details like post ID, blog ID, content, author information, comments, labels, and location.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage posts using various methods: list to retrieve multiple posts, get to retrieve a specific post by ID, and others for searching, inserting, deleting, updating, and publishing.\u003c/p\u003e\n"],["\u003cp\u003ePosts can include custom metadata and images, along with details about the post's location if it is geotagged.\u003c/p\u003e\n"]]],[],null,["# Posts\n\nA posts resource contain the HTML content of a blog post, along with post metadata.\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```objective-c\n{\n \"kind\": \"blogger#post\",\n \"id\": string,\n \"blog\": {\n \"id\": string\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"url\": string,\n \"selfLink\": string,\n \"title\": string,\n \"titleLink\": string,\n \"content\": string,\n \"images\": [\n {\n \"url\": string\n }\n ],\n \"author\": {\n \"id\": string,\n \"displayName\": string,\n \"url\": string,\n \"image\": {\n \"url\": string\n }\n },\n \"replies\": {\n \"totalItems\": long,\n \"selfLink\": string,\n \"items\": [\n comments Resource\n ]\n },\n \"labels\": [\n string\n ],\n \"location\": {\n \"name\": string,\n \"lat\": double,\n \"lng\": double,\n \"span\": string\n },\n \"status\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|----------------------|------------|----------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entity. Always `blogger#post`. | |\n| `id` | `string` | The ID of this post. | |\n| `blog` | `object` | Data about the blog containing this post. | |\n| blog.`id` | `string` | The ID of the blog that contains this post. | |\n| `published` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this post was published. | |\n| `updated` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this post was last updated. | |\n| `url` | `string` | The URL where this post is displayed. | |\n| `selfLink` | `string` | The Blogger API URL to fetch this resource from. | |\n| `title` | `string` | The title of the post. | |\n| `content` | `string` | The content of the post. Can contain HTML markup. | |\n| `author` | `object` | The author of this post. | |\n| author.`id` | `string` | The ID of the post creator. | |\n| author.`displayName` | `string` | The post creator's display name. | |\n| author.`url` | `string` | The URL of the post creator's profile page. | |\n| author.`image` | `object` | The post creator's avatar. | |\n| author.image.`url` | `string` | The post creator's avatar URL. | |\n| `replies` | `object` | The container for this post's comments. | |\n| replies.`totalItems` | `long` | The total number of comments on this post. | |\n| replies.`selfLink` | `string` | The Blogger API URL of to retrieve the comments for this post. | |\n| `labels[]` | `list` | The list of labels this post was tagged with. | |\n| replies.`items[]` | `list` | The list of comments for this post. | |\n| `location` | `object` | The location, if this post is geotagged. | |\n| location.`name` | `string` | Location name. | |\n| location.`lat` | `double` | Location's latitude. | |\n| location.`lng` | `double` | Location's longitude. | |\n| location.`span` | `string` | Location's viewport span. Can be used when rendering a map preview. | |\n| `titleLink` | `string` | The title link URL, similar to atom's related link. | |\n| `images[]` | `list` | Display image for the Post. | |\n| images[].`url` | `string` | | |\n| `status` | `string` | Status of the post. Only set for admin-level requests | |\n\nMethods\n-------\n\nYou can retrieve the list of posts for a blog using the [list](/blogger/docs/3.0/reference/posts/list) method, and retrieve an individual post using the [get](/blogger/docs/3.0/reference/posts/get) method.\n\n[list](/blogger/docs/3.0/reference/posts/list)\n: Retrieves a list of posts.\n\n[get](/blogger/docs/3.0/reference/posts/get)\n: Retrieves one post by post ID.\n\n[search](/blogger/docs/3.0/reference/posts/search)\n: Searches for a post that matches the given query terms.\n\n[insert](/blogger/docs/3.0/reference/posts/insert)\n: Adds a post.\n\n[delete](/blogger/docs/3.0/reference/posts/delete)\n: Deletes a post by ID.\n\n[getByPath](/blogger/docs/3.0/reference/posts/getByPath)\n: Retrieves a post by path.\n\n[patch](/blogger/docs/3.0/reference/posts/patch)\n: Updates a post. This method supports [patch semantics](/blogger/docs/3.0/performance).\n\n[update](/blogger/docs/3.0/reference/posts/update)\n: Updates a post.\n\n[publish](/blogger/docs/3.0/reference/posts/publish)\n: Publish a draft post.\n\n[revert](/blogger/docs/3.0/reference/posts/revert)\n: Revert a published or scheduled post to draft state, which removes the post from the publicly viewable content."]]