REST Resource: users.threads
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Risorsa: Thread
Una raccolta di messaggi che rappresentano una conversazione.
Rappresentazione JSON |
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
Campi |
id |
string
L'ID univoco del thread.
|
snippet |
string
Una breve parte del testo del messaggio.
|
historyId |
string
L'ID dell'ultimo record della cronologia che ha modificato questo thread.
|
messages[] |
object (Message )
L'elenco dei messaggi nel thread.
|
Metodi |
|
Elimina immediatamente e definitivamente il thread specificato. |
|
Recupera il thread specificato. |
|
Elenca i thread nella posta in arrivo dell'utente. |
|
Modifica le etichette applicate al thread. |
|
Sposta il thread specificato nel cestino. |
|
Rimuove il thread specificato dal cestino. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]