บล็อก
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
บล็อกคือคลาสข้อมูลรูทสำหรับ 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
}
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
Notes |
kind |
string |
ประเภทของรายการนี้ blogger#blog เสมอ |
|
id |
string |
รหัสสำหรับทรัพยากรนี้ |
|
name |
string |
ชื่อของบล็อกนี้ ซึ่งโดยปกติจะแสดงใน Blogger เป็นชื่อบล็อก ชื่อสามารถใส่ HTML ได้ |
|
description |
string |
คำอธิบายของบล็อกนี้ ซึ่งมักจะแสดงใน Blogger ใต้ชื่อบล็อก คำอธิบายสามารถใส่ HTML ได้ |
|
published |
datetime |
RFC 3339 date-time เมื่อบล็อกนี้ได้รับการเผยแพร่ เช่น "2007-02-09T10:13:10-08:00" |
|
updated |
datetime |
RFC 3339 date-time เมื่อบล็อกนี้ได้รับการอัปเดตล่าสุด เช่น "2012-04-15T19:38:01-07:00" |
|
url |
string |
URL ที่เผยแพร่บล็อกนี้ |
|
selfLink |
string |
URL ของ Blogger API ที่จะดึงข้อมูลทรัพยากรนี้ |
|
posts |
object |
คอนเทนเนอร์สำหรับบทความของบล็อกนี้ |
|
posts.totalItems |
integer |
จำนวนการโพสต์ทั้งหมดในบล็อกนี้ |
|
posts.selfLink |
string |
URL ของคอลเล็กชันของโพสต์สำหรับบล็อกนี้ |
|
pages |
object |
คอนเทนเนอร์สำหรับหน้าเว็บของบล็อกนี้ |
|
pages.totalItems |
integer |
จำนวนหน้าทั้งหมดสำหรับบล็อกนี้ |
|
pages.selfLink |
string |
URL ของคอลเล็กชันหน้าสำหรับบล็อกนี้ |
|
locale |
object |
ภาษาของบล็อกที่ใช้ ตามที่ระบุไว้ด้านล่าง |
|
locale.language |
string |
ภาษาที่ใช้ตั้งค่าบล็อกนี้ เช่น "en" สำหรับภาษาอังกฤษ |
|
locale.country |
string |
รูปแบบของประเทศของภาษา เช่น "US" สำหรับภาษาอังกฤษแบบอเมริกัน |
|
locale.variant |
string |
รูปแบบภาษาที่ตั้งไว้ในบล็อกนี้ |
|
customMetaData |
string |
ข้อมูลเมตา JSON ที่กำหนดเองสำหรับบล็อก |
|
posts.items[] |
list |
รายการโพสต์สำหรับบล็อกนี้ |
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-06-26 UTC
[null,null,["อัปเดตล่าสุด 2024-06-26 UTC"],[[["\u003cp\u003eA blog in the Blogger API is the primary data structure, containing posts, pages, and associated comments.\u003c/p\u003e\n"],["\u003cp\u003eEach blog has metadata such as title, description, publication date, update date, and locale information.\u003c/p\u003e\n"],["\u003cp\u003eBlogs can be accessed and managed through dedicated API methods like \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003egetByUrl\u003c/code\u003e, and \u003ccode\u003elistByUser\u003c/code\u003e, enabling developers to retrieve individual blogs or lists of blogs associated with a specific user.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides comprehensive access to blog data, including the number of posts and pages, as well as links to access these collections.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage the \u003ccode\u003eposts\u003c/code\u003e and \u003ccode\u003epages\u003c/code\u003e properties to retrieve and interact with a blog's content.\u003c/p\u003e\n"]]],[],null,["# Blogs\n\nA blog is the root data class for the Blogger API. Each blog has a series of [posts](/blogger/docs/3.0/reference/posts) and [pages](/blogger/docs/3.0/reference/pages), and each post has a series of [comments](/blogger/docs/3.0/reference/comments).\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```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` | `string` | The ID for this resource. | |\n| `name` | `string` | The name of this blog, which is usually displayed in Blogger as the blog's title. The title can include HTML. | |\n| `description` | `string` | The description of this blog, which is usually displayed in Blogger underneath the blog's title. The description can include HTML. | |\n| `published` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this blog was published, for example \"2007-02-09T10:13:10-08:00\". | |\n| `updated` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this blog was last updated, for example \"2012-04-15T19:38:01-07:00\". | |\n| `url` | `string` | The URL where this blog is published. | |\n| `selfLink` | `string` | The Blogger API 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 collection of posts 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, as broken out below. | |\n| locale.`language` | `string` | The language this blog is set to, for example \"en\" for English. | |\n| locale.`country` | `string` | The country variant of the language, for example \"US\" for American English. | |\n| locale.`variant` | `string` | The language variant this blog is set to. | |\n| `customMetaData` | `string` | The JSON custom metadata for the blog | |\n| posts.`items[]` | `list` | The list of posts for this Blog. | |\n\nMethods\n-------\n\nTo retrieve a list of blogs that a given [user](/blogger/docs/3.0/reference/users#resource) has access rights to, use the [blogger.blogs.list](/blogger/docs/3.0/reference/blogs/list) method. To retrieve an individual [blogs](/blogger/docs/3.0/reference/blogs#resource) resource, use the [blogger.blogs.get](/blogger/docs/3.0/reference/blogs/get) method.\n\n[get](/blogger/docs/3.0/reference/blogs/get)\n: Retrieves a blog by its ID.\n\n[getByUrl](/blogger/docs/3.0/reference/blogs/getByUrl)\n: Retrieves a blog by URL.\n\n[listByUser](/blogger/docs/3.0/reference/blogs/listByUser)\n: Retrieves a list of blogs."]]