REST Resource: replies
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.
Tài nguyên: Trả lời
Nội dung phản hồi một bình luận về tệp.
Một số phương thức tài nguyên (chẳng hạn như replies.update
) yêu cầu replyId
. Sử dụng phương thức replies.list
để truy xuất mã nhận dạng cho một thư trả lời.
Biểu diễn dưới dạng JSON |
{
"id": string,
"kind": string,
"createdTime": string,
"modifiedTime": string,
"action": string,
"author": {
object (User )
},
"deleted": boolean,
"htmlContent": string,
"content": string
} |
Trường |
id |
string
Chỉ có đầu ra. Mã của thư trả lời.
|
kind |
string
Chỉ có đầu ra. Xác định loại tài nguyên này. Giá trị: chuỗi cố định "drive#reply" .
|
createdTime |
string
Chỉ có đầu ra. Thời gian tạo thư trả lời (ngày-giờ theo RFC 3339).
|
modifiedTime |
string
Chỉ có đầu ra. Lần sửa đổi gần nhất của thư trả lời (ngày-giờ theo RFC 3339).
|
action |
string
Thao tác mà bình luận trả lời thực hiện đối với bình luận gốc. Các giá trị hợp lệ là:
|
author |
object (User )
Chỉ có đầu ra. Tác giả của thư trả lời. Địa chỉ email và mã quyền của tác giả sẽ không được điền.
|
deleted |
boolean
Chỉ có đầu ra. Liệu câu trả lời đó đã bị xoá hay chưa. Tin nhắn trả lời đã xoá không có nội dung.
|
htmlContent |
string
Chỉ có đầu ra. Nội dung của thư trả lời có định dạng HTML.
|
content |
string
Nội dung văn bản thuần tuý của thư trả lời. Trường này dùng để thiết lập nội dung, trong khi htmlContent sẽ hiển thị. Bạn bắt buộc phải nhập thông tin này khi tạo nếu không chỉ định action .
|
Phương thức |
|
Tạo một tin nhắn trả lời bình luận. |
|
Xoá một thư trả lời. |
|
Nhận thư trả lời theo mã nhận dạng. |
|
Liệt kê các câu trả lời của một bình luận. |
|
Cập nhật một thư trả lời bằng ngữ nghĩa của bản vá. |
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: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]