Drafts
मेलबॉक्स में सहेजे गए बिना भेजे संदेश।
ड्राफ़्ट टूल
| टूल | यह क्या करता है |
|---|---|
| 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आवश्यक- खाली नहीं