REST Resource: users.threads
Zasób: Thread
Zbiór wiadomości przedstawiających rozmowę.
Zapis JSON |
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
Pola |
id |
string
Unikalny identyfikator wątku.
|
snippet |
string
Krótka część tekstu wiadomości.
|
historyId |
string
Identyfikator ostatniego rekordu historii, który zmodyfikował ten wątek.
|
messages[] |
object (Message )
Lista wiadomości w wątku.
|
Metody |
|
Natychmiast i trwale usuwa określony wątek. |
|
Pobiera określony wątek. |
|
Zawiera listę wątków w skrzynce pocztowej użytkownika. |
|
Modyfikuje etykiety zastosowane do wątku. |
|
Przenosi określony wątek do kosza. |
|
Usuwa określony wątek z kosza. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-05 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-05 UTC."],[[["A Thread is a collection of messages forming a conversation, identified by a unique ID and containing a snippet of the message text."],["Threads contain metadata such as `snippet`, `historyId`, and a list of messages."],["You can manage Threads using methods like `delete`, `get`, `list`, `modify`, `trash`, and `untrash` to perform actions such as retrieving, modifying, or deleting them."]]],["Threads represent message collections in a conversation. Key details include a unique `id`, a `snippet` of text, the `historyId` of modifications, and an array of `messages`. Threads can be managed via methods to get thread information, list all threads, modify labels, and delete, trash, or untrash them. The thread's JSON representation shows the structure of the information, with string fields for identification and metadata and an array of messages.\n"]]