REST Resource: replies
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: การตอบกลับ
การตอบกลับความคิดเห็นในไฟล์
วิธีการของทรัพยากรบางรายการ (เช่น replies.update
) ต้องใช้ replyId
ใช้เมธอด replies.list
เพื่อเรียกข้อมูลรหัสสำหรับการตอบกลับ
การแสดง JSON |
{
"id": string,
"kind": string,
"createdTime": string,
"modifiedTime": string,
"action": string,
"author": {
object (User )
},
"deleted": boolean,
"htmlContent": string,
"content": string
} |
ช่อง |
id |
string
เอาต์พุตเท่านั้น รหัสของคําตอบ
|
kind |
string
เอาต์พุตเท่านั้น ระบุประเภทของทรัพยากร ค่า: สตริงคงที่ "drive#reply"
|
createdTime |
string
เอาต์พุตเท่านั้น เวลาที่สร้างการตอบกลับ (รูปแบบวันที่และเวลา RFC 3339)
|
modifiedTime |
string
เอาต์พุตเท่านั้น เวลาล่าสุดที่มีการแก้ไขการตอบกลับ (รูปแบบวันที่และเวลา RFC 3339)
|
action |
string
การดำเนินการที่การตอบกลับดำเนินการกับความคิดเห็นหลัก ค่าที่ใช้ได้มีดังนี้
|
author |
object (User )
เอาต์พุตเท่านั้น ผู้เขียนคำตอบ ระบบจะไม่ป้อนอีเมลและรหัสสิทธิ์ของผู้เขียน
|
deleted |
boolean
เอาต์พุตเท่านั้น มีการลบการตอบกลับหรือไม่ การตอบกลับที่ลบไปแล้วจะไม่มีเนื้อหา
|
htmlContent |
string
เอาต์พุตเท่านั้น เนื้อหาของคําตอบที่มีการจัดรูปแบบ HTML
|
content |
string
เนื้อหาข้อความธรรมดาของคำตอบ ช่องนี้ใช้สำหรับตั้งค่าเนื้อหา ขณะที่ htmlContent ควรแสดง ต้องระบุค่านี้เมื่อสร้างหากไม่ได้ระบุ action
|
เมธอด |
|
สร้างการตอบกลับความคิดเห็น |
|
ลบการตอบกลับ |
|
รับการตอบกลับตามรหัส |
|
แสดงรายการการตอบกลับของความคิดเห็น |
|
อัปเดตการตอบกลับด้วยความหมายของแพตช์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# REST Resource: replies\n\n- [Resource: Reply](#Reply)\n - [JSON representation](#Reply.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Reply\n---------------\n\nA reply to a comment on a file.\n\nSome resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"kind\": string, \"createdTime\": string, \"modifiedTime\": string, \"action\": string, \"author\": { object (/workspace/drive/api/reference/rest/v3/User) }, \"deleted\": boolean, \"htmlContent\": string, \"content\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` Output only. The ID of the reply. |\n| `kind` | `string` Output only. Identifies what kind of resource this is. Value: the fixed string `\"drive#reply\"`. |\n| `createdTime` | `string` Output only. The time at which the reply was created (RFC 3339 date-time). |\n| `modifiedTime` | `string` Output only. The last time the reply was modified (RFC 3339 date-time). |\n| `action` | `string` The action the reply performed to the parent comment. Valid values are: - `resolve` - `reopen` |\n| `author` | `object (`[User](/workspace/drive/api/reference/rest/v3/User)`)` Output only. The author of the reply. The author's email address and permission ID will not be populated. |\n| `deleted` | `boolean` Output only. Whether the reply has been deleted. A deleted reply has no content. |\n| `htmlContent` | `string` Output only. The content of the reply with HTML formatting. |\n| `content` | `string` The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------|---------------------------------------|\n| ### [create](/workspace/drive/api/reference/rest/v3/replies/create) | Creates a reply to a comment. |\n| ### [delete](/workspace/drive/api/reference/rest/v3/replies/delete) | Deletes a reply. |\n| ### [get](/workspace/drive/api/reference/rest/v3/replies/get) | Gets a reply by ID. |\n| ### [list](/workspace/drive/api/reference/rest/v3/replies/list) | Lists a comment's replies. |\n| ### [update](/workspace/drive/api/reference/rest/v3/replies/update) | Updates a reply with patch semantics. |"]]