REST Resource: users.threads
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: เทรด
คอลเล็กชันข้อความที่แสดงการสนทนา
การแสดง JSON |
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
ช่อง |
id |
string
รหัสที่ไม่ซ้ำกันของเธรด
|
snippet |
string
ข้อความสั้นๆ ของข้อความ
|
historyId |
string
รหัสของระเบียนประวัติล่าสุดที่แก้ไขชุดข้อความนี้
|
messages[] |
object (Message )
รายการข้อความในชุดข้อความ
|
เมธอด |
|
ลบชุดข้อความที่ระบุทันทีและถาวร |
|
รับชุดข้อความที่ระบุ |
|
แสดงชุดข้อความในกล่องจดหมายของผู้ใช้ |
|
แก้ไขป้ายกำกับที่ใช้กับชุดข้อความ |
|
ย้ายชุดข้อความที่ระบุไปยังถังขยะ |
|
นำชุดข้อความที่ระบุออกจากถังขยะ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# REST Resource: users.threads\n\n- [Resource: Thread](#Thread)\n - [JSON representation](#Thread.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Thread\n----------------\n\nA collection of messages representing a conversation.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"snippet\": string, \"historyId\": string, \"messages\": [ { object (/workspace/gmail/api/reference/rest/v1/users.messages#Message) } ] } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The unique ID of the thread. |\n| `snippet` | `string` A short part of the message text. |\n| `historyId` | `string` The ID of the last history record that modified this thread. |\n| `messages[]` | `object (`[Message](/workspace/gmail/api/reference/rest/v1/users.messages#Message)`)` The list of messages in the thread. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------|-----------------------------------------------------------|\n| ### [delete](/workspace/gmail/api/reference/rest/v1/users.threads/delete) | Immediately and permanently deletes the specified thread. |\n| ### [get](/workspace/gmail/api/reference/rest/v1/users.threads/get) | Gets the specified thread. |\n| ### [list](/workspace/gmail/api/reference/rest/v1/users.threads/list) | Lists the threads in the user's mailbox. |\n| ### [modify](/workspace/gmail/api/reference/rest/v1/users.threads/modify) | Modifies the labels applied to the thread. |\n| ### [trash](/workspace/gmail/api/reference/rest/v1/users.threads/trash) | Moves the specified thread to the trash. |\n| ### [untrash](/workspace/gmail/api/reference/rest/v1/users.threads/untrash) | Removes the specified thread from the trash. |"]]