پیشنویسها
پیامهای فرستادهنشدهای که در صندوق پستی ذخیره شدهاند.
ابزارهای پیشنویسها
| ابزار | چه میکند |
|---|---|
| listDrafts | پیشنویسها، تازهترین ذخیرهشدهها در ابتدا، هر کدام با موضوع، گیرندگان و فرستندهاش. query در آنها جستوجو میکند. |
| getDraft | یک پیشنویس بهطور کامل: فرستنده، گیرندگان، موضوع، رشتهای که به آن پاسخ میدهد، پیوستها و متنش. |
| createDraft | یک پیشنویس تازه را بدون فرستادن ذخیره کنید. همهٔ فیلدها اختیاریاند، و threadId آن را به یک پاسخ تبدیل میکند. |
| updateDraft | فیلدهای یک پیشنویس را تغییر دهید. فیلدی که جا بگذارید مقدارش را نگه میدارد، و یک فهرست، فهرست ذخیرهشده را بهطور کامل جایگزین میکند. |
| deleteDraft | یک پیشنویس را برای همیشه حذف کنید. به سطل زباله نمیرود. |
خواندن به «خواندن پیشنویسها» (drafts:read) نیاز دارد و ذخیره، تغییر یا حذف به «ساختن و ویرایش پیشنویسها» (drafts:write). کلاینتی که به برخی نشانیها محدود است فقط پیشنویسهای همان نشانیها را میبیند، و پیشنویسی که ذخیره میکند به یک from نیاز دارد که کلاینت اجازه دارد با آن بفرستد.
در گفتوگوی برنامه، ذخیره، تغییر و حذف یک پیشنویس اول میپرسند مگر آنکه خودتان خواسته باشید.
مرجع
listDrafts
The unsent drafts in the mailbox, most recently saved first, each with its id, subject, recipients and sender. query searches the subject, the sender and the start of the body. When more follow, the last line gives a pageToken: call again with the same query and that pageToken.
ورودیها
querystringlimitinteger- دستکم 1حداکثر 100
pageTokenstring
همچنین در دسترس در
getDraft
One draft in full: its sender, recipients, subject, the thread it replies to, the names of its attachments and its body as saved. Take the id from listDrafts.
ورودیها
draftIdstringالزامی- خالی نباشد
همچنین در دسترس در
createDraft
Save a new draft without sending it, as the composer does when you close it. Every field is optional, and html wins over text when both are given. from is the address it will be sent as, and threadId makes it a reply to that thread. sendEmail with the draft id sends it later.
ورودیها
tostring[]ccstring[]bccstring[]subjectstring- تا 998 نویسه
htmlstring- تا 1000000 نویسه
textstring- تا 1000000 نویسه
fromstringthreadIdstring
همچنین در دسترس در
updateDraft
Change fields on a saved draft. A field you leave out keeps its value, and a list you give replaces the saved one whole, so to with one address drops the others. from null clears the sender. Take the id from listDrafts.
ورودیها
draftIdstringالزامی- خالی نباشد
tostring[]ccstring[]bccstring[]subjectstring- تا 998 نویسه
htmlstring- تا 1000000 نویسه
textstring- تا 1000000 نویسه
fromstring- میتواند null باشد
threadIdstring
همچنین در دسترس در
deleteDraft
Delete a draft for good. It does not go to the Bin and cannot be brought back. Take the id from listDrafts.
ورودیها
draftIdstringالزامی- خالی نباشد