Maximale Anzahl der zurückzugebenden Entwürfe. Der Standardwert für dieses Feld ist 100. Der maximal zulässige Wert für dieses Feld ist 500.
pageToken
string
Seitentoken zum Abrufen einer bestimmten Ergebnisseite in der Liste.
q
string
Es werden nur Nachrichtenentwürfe zurückgegeben, die mit der angegebenen Abfrage übereinstimmen. Unterstützt dasselbe Anfrageformat wie das Gmail-Suchfeld. Beispiel: "from:someuser@example.com rfc822msgid:<somemsgid@example.com>
is:unread".
includeSpamTrash
boolean
Entwürfe von SPAM und TRASH in die Ergebnisse aufnehmen.
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, enthält der Antworttext Daten mit folgender Struktur:
Liste der Entwürfe. Beachten Sie, dass das Attribut Message in jeder Draft-Ressource nur einen id und einen threadId enthält. Mit der Methode messages.get können zusätzliche Nachrichtendetails abgerufen werden.
nextPageToken
string
Token zum Abrufen der nächsten Ergebnisseite in der Liste.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-09-05 (UTC)."],[[["Lists drafts in a user's mailbox using the Gmail API."],["Allows filtering by query, maximum results, and inclusion of spam/trash."],["Response includes a list of drafts with basic information (id, threadId)."],["Requires specific OAuth scopes for authorization, such as `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.readonly`."],["Provides pagination for retrieving large numbers of drafts using `nextPageToken`."]]],["This API endpoint retrieves a list of drafts from a user's Gmail mailbox using a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts`. The `userId` path parameter specifies the user, with \"me\" for the authenticated user. Query parameters allow filtering by `maxResults`, `pageToken`, search query (`q`), and inclusion of spam/trash drafts. The request body is empty. The response returns an array of drafts, `nextPageToken`, and `resultSizeEstimate`. Authorization requires specific OAuth scopes.\n"]]