מספר הטיוטות המקסימלי להחזרה. ערך ברירת המחדל של השדה הזה הוא 100. הערך המקסימלי המותר לשדה הזה הוא 500.
pageToken
string
אסימון של דף לאחזור דף ספציפי של תוצאות ברשימה.
q
string
מוחזרות רק הודעות טיוטה שתואמות לשאילתה שצוינה. תומכת באותו פורמט שאילתה כמו תיבת החיפוש של Gmail. לדוגמה, "from:someuser@example.com rfc822msgid:<somemsgid@example.com>
is:unread".
includeSpamTrash
boolean
יש לכלול בתוצאות טיוטות של SPAM ושל TRASH.
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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"]]