ความคิดเห็น
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ความคิดเห็นสำหรับแหล่งข้อมูลโพสต์
ดูรายการเมธอดสำหรับทรัพยากรนี้ได้ที่ส่วนท้ายของหน้านี้
การนำเสนอแหล่งข้อมูล
{
"kind": "blogger#comment",
"status": string,
"id": string,
"inReplyTo": {
"id": string
},
"post": {
"id": string
},
"blog": {
"id": string
},
"published": datetime,
"updated": datetime,
"selfLink": string,
"content": string,
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
}
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
Notes |
kind |
string |
ประเภทของแหล่งข้อมูลนี้ blogger#comment เสมอ |
|
id |
string |
รหัสสำหรับทรัพยากรนี้ |
|
post |
object |
ข้อมูลเกี่ยวกับโพสต์ที่มีความคิดเห็นนี้ |
|
post.id |
string |
ตัวระบุของโพสต์ที่มีความคิดเห็นนี้ |
|
blog |
object |
ข้อมูลเกี่ยวกับบล็อกที่มีความคิดเห็นนี้ |
|
blog.id |
string |
ตัวระบุของบล็อกที่มีความคิดเห็นนี้ |
|
published |
datetime |
RFC 3339 date-time วันที่และเวลาที่เผยแพร่ความคิดเห็นนี้ เช่น "2012-04-15T19:38:01-07:00" |
|
updated |
datetime |
RFC 3339 date-time เมื่อความคิดเห็นนี้ได้รับการอัปเดตล่าสุด สำหรับการสอบเช่น "2012-04-15T19:43:21-07:00" |
|
selfLink |
string |
URL ของ Blogger API ที่จะดึงข้อมูลทรัพยากรนี้ |
|
content |
string |
เนื้อหาของความคิดเห็น ซึ่งอาจรวมถึงมาร์กอัป HTML |
|
author |
object |
ผู้เขียนความคิดเห็นนี้ |
|
author.id |
string |
ตัวระบุของครีเอเตอร์ความคิดเห็น |
|
author.displayName |
string |
ชื่อที่แสดงของครีเอเตอร์ความคิดเห็น |
|
author.url |
string |
URL หน้าโปรไฟล์ของครีเอเตอร์ |
|
author.image |
object |
คอนเทนเนอร์สำหรับ URL รูปโปรไฟล์ของครีเอเตอร์ |
|
author.image.url |
string |
URL รูปโปรไฟล์ของครีเอเตอร์แสดงความคิดเห็น |
|
inReplyTo |
object |
ข้อมูลเกี่ยวกับความคิดเห็นที่มีการตอบกลับนี้ |
|
inReplyTo.id |
string |
รหัสระดับบนสุดของความคิดเห็นนี้ |
|
status |
string |
สถานะของความคิดเห็น สถานะจะปรากฏแก่ผู้ใช้ที่มีสิทธิ์การดูแลระบบในบล็อกเท่านั้น |
|
วิธีการ
หากต้องการเรียกดูรายการความคิดเห็นของโพสต์ ให้ใช้เมธอดรายการ หากต้องการเรียกความคิดเห็นแต่ละรายการ ให้ใช้วิธีการรับ
- list
- เรียกข้อมูลรายการความคิดเห็นสำหรับโพสต์
- รับ
- เรียกข้อมูลทรัพยากรความคิดเห็น 1 รายการตาม commentId
- อนุมัติ
- ทำเครื่องหมายว่าความคิดเห็นไม่ใช่สแปม
- ลบ
- ลบความคิดเห็นตาม ID
- listByBlog
- เรียกข้อมูลความคิดเห็นของบล็อกในทุกโพสต์ ซึ่งอาจมีการกรองไว้
- markAsSpam
- ทำเครื่องหมายความคิดเห็นว่าเป็นสแปม การดำเนินการนี้จะตั้งค่าสถานะของความคิดเห็นเป็น
spam
และซ่อนความคิดเห็นไว้ในการแสดงผลความคิดเห็นเริ่มต้น
- removeContent
- นำเนื้อหาของความคิดเห็นออก
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-06-26 UTC
[null,null,["อัปเดตล่าสุด 2024-06-26 UTC"],[[["\u003cp\u003eThis page provides details on the resource representation for Blogger comments, including properties like author, content, and publication date.\u003c/p\u003e\n"],["\u003cp\u003eYou can use methods like \u003ccode\u003elist\u003c/code\u003e and \u003ccode\u003eget\u003c/code\u003e to retrieve comments for posts.\u003c/p\u003e\n"],["\u003cp\u003eAdditional methods allow for managing comments, such as approving, deleting, and marking as spam.\u003c/p\u003e\n"],["\u003cp\u003eThe resource representation is presented in JSON format with detailed descriptions of each property.\u003c/p\u003e\n"],["\u003cp\u003eComments can be associated with a specific post and blog, identifiable by their respective IDs.\u003c/p\u003e\n"]]],[],null,["# Comments\n\nThe comments for a [posts](/blogger/docs/3.0/reference/posts) resource.\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#comment\",\n \"status\": string,\n \"id\": string,\n \"inReplyTo\": {\n \"id\": string\n },\n \"post\": {\n \"id\": string\n },\n \"blog\": {\n \"id\": string\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"selfLink\": 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 resource. Always `blogger#comment`. | |\n| `id` | `string` | The ID for this resource. | |\n| `post` | `object` | Data about the post containing this comment. | |\n| post.`id` | `string` | The identifier of the post containing this comment. | |\n| `blog` | `object` | Data about the blog containing this comment. | |\n| blog.`id` | `string` | The identifier of the blog containing this comment. | |\n| `published` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` date-time when this comment was published, for example \"2012-04-15T19:38:01-07:00\". | |\n| `updated` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this comment was last updated, for example \"2012-04-15T19:43:21-07:00\". | |\n| `selfLink` | `string` | The Blogger API URL to fetch this resource from. | |\n| `content` | `string` | The content of the comment, which can include HTML markup. | |\n| `author` | `object` | The author of this comment. | |\n| author.`id` | `string` | The identifier of the comment creator. | |\n| author.`displayName` | `string` | The comment creator's display name. | |\n| author.`url` | `string` | The URL of the comment creator's profile page. | |\n| author.`image` | `object` | The container for the creator's avatar URL. | |\n| author.image.`url` | `string` | The URL of the comment creator's avatar image. | |\n| `inReplyTo` | `object` | Data about the comment this is in reply to. | |\n| inReplyTo.`id` | `string` | The ID of the parent of this comment. | |\n| `status` | `string` | The status of the comment. The status is only visible to users who have Administration rights on a blog. | |\n\nMethods\n-------\n\nTo retrieve a list of comments for a post, use the [list](/blogger/docs/3.0/reference/comments/list) method. To retrieve an individual comment, use the [get](/blogger/docs/3.0/reference/comments/get) method.\n\n[list](/blogger/docs/3.0/reference/comments/list)\n: Retrieves the list of [comments](/blogger/docs/3.0/reference/comments) for a [post](/blogger/docs/3.0/reference/posts).\n\n[get](/blogger/docs/3.0/reference/comments/get)\n: Retrieves one comment resource by its commentId.\n\n[approve](/blogger/docs/3.0/reference/comments/approve)\n: Marks a comment as not spam.\n\n[delete](/blogger/docs/3.0/reference/comments/delete)\n: Delete a comment by ID.\n\n[listByBlog](/blogger/docs/3.0/reference/comments/listByBlog)\n: Retrieves the comments for a blog, across all posts, possibly filtered.\n\n[markAsSpam](/blogger/docs/3.0/reference/comments/markAsSpam)\n: Marks a comment as spam. This will set the status of the comment to `spam`, and hide it in the default comment rendering.\n\n[removeContent](/blogger/docs/3.0/reference/comments/removeContent)\n: Removes the content of a comment."]]