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 date-time). |
modifiedTime | string فقط خروجی آخرین باری که پاسخ اصلاح شد (تاریخ-زمان RFC 3339). |
action | string اقدامی که پاسخ به نظر والد انجام شد. مقادیر معتبر عبارتند از: |
author | object ( User ) فقط خروجی نویسنده پاسخ. آدرس ایمیل نویسنده و شناسه مجوز پر نخواهد شد. |
deleted | boolean فقط خروجی آیا پاسخ حذف شده است. پاسخ حذف شده محتوایی ندارد. |
htmlContent | string فقط خروجی محتوای پاسخ با قالب بندی HTML. |
content | string محتوای متن ساده پاسخ. این فیلد برای تنظیم محتوا استفاده می شود، در حالی که htmlContent باید نمایش داده شود. اگر هیچ action مشخص نشده باشد، این مورد برای ایجادها ضروری است. |
روش ها |
---|
| یک پاسخ به یک نظر ایجاد می کند. |
| یک پاسخ را حذف می کند. |
| با شناسه پاسخ می گیرد. |
| پاسخ های یک نظر را فهرست می کند. |
| یک پاسخ را با معنای پچ به روز می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],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. |"]]