blob: 019f26289d87b52b0414793f82c4c974f96fca27 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="gmail_v1.html">Gmail API</a> . <a href="gmail_v1.users.html">users</a> . <a href="gmail_v1.users.drafts.html">drafts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(userId, body=None, media_body=None)</a></code></p>
79<p class="firstline">Creates a new draft with the DRAFT label.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(userId, id)</a></code></p>
82<p class="firstline">Immediately and permanently deletes the specified draft. Does not simply trash it.</p>
83<p class="toc_element">
84 <code><a href="#get">get(userId, id, format=None)</a></code></p>
85<p class="firstline">Gets the specified draft.</p>
86<p class="toc_element">
87 <code><a href="#list">list(userId, pageToken=None, maxResults=None)</a></code></p>
88<p class="firstline">Lists the drafts in the user's mailbox.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#send">send(userId, body=None, media_body=None)</a></code></p>
94<p class="firstline">Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.</p>
95<p class="toc_element">
96 <code><a href="#update">update(userId, id, body=None, media_body=None)</a></code></p>
97<p class="firstline">Replaces a draft's content.</p>
98<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="create">create(userId, body=None, media_body=None)</code>
101 <pre>Creates a new draft with the DRAFT label.
102
103Args:
104 userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)
105 body: object, The request body.
106 The object takes the form of:
107
108{ # A draft email in the user's mailbox.
109 "message": { # An email message. # The message content of the draft.
110 "historyId": "A String", # The ID of the last history record that modified this message.
111 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
112 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
113 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
114 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
115 "size": 42, # Total number of bytes in the body of the message part.
116 },
117 "mimeType": "A String", # The MIME type of the message part.
118 "partId": "A String", # The immutable ID of the message part.
119 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
120 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
121 {
122 "name": "A String", # The name of the header before the : separator. For example, To.
123 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
124 },
125 ],
126 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
127 # Object with schema name: MessagePart
128 ],
129 },
130 "snippet": "A String", # A short part of the message text.
131 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
132 "sizeEstimate": 42, # Estimated size in bytes of the message.
133 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
134 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
135 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
136 # - The Subject headers must match.
137 "labelIds": [ # List of IDs of labels applied to this message.
138 "A String",
139 ],
140 "id": "A String", # The immutable ID of the message.
141 },
142 "id": "A String", # The immutable ID of the draft.
143}
144
145 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
146
147Returns:
148 An object of the form:
149
150 { # A draft email in the user's mailbox.
151 "message": { # An email message. # The message content of the draft.
152 "historyId": "A String", # The ID of the last history record that modified this message.
153 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
154 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
155 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
156 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
157 "size": 42, # Total number of bytes in the body of the message part.
158 },
159 "mimeType": "A String", # The MIME type of the message part.
160 "partId": "A String", # The immutable ID of the message part.
161 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
162 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
163 {
164 "name": "A String", # The name of the header before the : separator. For example, To.
165 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
166 },
167 ],
168 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
169 # Object with schema name: MessagePart
170 ],
171 },
172 "snippet": "A String", # A short part of the message text.
173 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
174 "sizeEstimate": 42, # Estimated size in bytes of the message.
175 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
176 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
177 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
178 # - The Subject headers must match.
179 "labelIds": [ # List of IDs of labels applied to this message.
180 "A String",
181 ],
182 "id": "A String", # The immutable ID of the message.
183 },
184 "id": "A String", # The immutable ID of the draft.
185 }</pre>
186</div>
187
188<div class="method">
189 <code class="details" id="delete">delete(userId, id)</code>
190 <pre>Immediately and permanently deletes the specified draft. Does not simply trash it.
191
192Args:
193 userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)
194 id: string, The ID of the draft to delete. (required)
195</pre>
196</div>
197
198<div class="method">
199 <code class="details" id="get">get(userId, id, format=None)</code>
200 <pre>Gets the specified draft.
201
202Args:
203 userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)
204 id: string, The ID of the draft to retrieve. (required)
205 format: string, The format to return the draft in.
206 Allowed values
207 full -
208 minimal -
209 raw -
210
211Returns:
212 An object of the form:
213
214 { # A draft email in the user's mailbox.
215 "message": { # An email message. # The message content of the draft.
216 "historyId": "A String", # The ID of the last history record that modified this message.
217 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
218 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
219 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
220 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
221 "size": 42, # Total number of bytes in the body of the message part.
222 },
223 "mimeType": "A String", # The MIME type of the message part.
224 "partId": "A String", # The immutable ID of the message part.
225 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
226 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
227 {
228 "name": "A String", # The name of the header before the : separator. For example, To.
229 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
230 },
231 ],
232 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
233 # Object with schema name: MessagePart
234 ],
235 },
236 "snippet": "A String", # A short part of the message text.
237 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
238 "sizeEstimate": 42, # Estimated size in bytes of the message.
239 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
240 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
241 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
242 # - The Subject headers must match.
243 "labelIds": [ # List of IDs of labels applied to this message.
244 "A String",
245 ],
246 "id": "A String", # The immutable ID of the message.
247 },
248 "id": "A String", # The immutable ID of the draft.
249 }</pre>
250</div>
251
252<div class="method">
253 <code class="details" id="list">list(userId, pageToken=None, maxResults=None)</code>
254 <pre>Lists the drafts in the user's mailbox.
255
256Args:
257 userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)
258 pageToken: string, Page token to retrieve a specific page of results in the list.
259 maxResults: integer, Maximum number of drafts to return.
260
261Returns:
262 An object of the form:
263
264 {
265 "nextPageToken": "A String", # Token to retrieve the next page of results in the list.
266 "resultSizeEstimate": 42, # Estimated total number of results.
267 "drafts": [ # List of drafts.
268 { # A draft email in the user's mailbox.
269 "message": { # An email message. # The message content of the draft.
270 "historyId": "A String", # The ID of the last history record that modified this message.
271 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
272 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
273 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
274 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
275 "size": 42, # Total number of bytes in the body of the message part.
276 },
277 "mimeType": "A String", # The MIME type of the message part.
278 "partId": "A String", # The immutable ID of the message part.
279 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
280 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
281 {
282 "name": "A String", # The name of the header before the : separator. For example, To.
283 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
284 },
285 ],
286 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
287 # Object with schema name: MessagePart
288 ],
289 },
290 "snippet": "A String", # A short part of the message text.
291 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
292 "sizeEstimate": 42, # Estimated size in bytes of the message.
293 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
294 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
295 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
296 # - The Subject headers must match.
297 "labelIds": [ # List of IDs of labels applied to this message.
298 "A String",
299 ],
300 "id": "A String", # The immutable ID of the message.
301 },
302 "id": "A String", # The immutable ID of the draft.
303 },
304 ],
305 }</pre>
306</div>
307
308<div class="method">
309 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
310 <pre>Retrieves the next page of results.
311
312Args:
313 previous_request: The request for the previous page. (required)
314 previous_response: The response from the request for the previous page. (required)
315
316Returns:
317 A request object that you can call 'execute()' on to request the next
318 page. Returns None if there are no more items in the collection.
319 </pre>
320</div>
321
322<div class="method">
323 <code class="details" id="send">send(userId, body=None, media_body=None)</code>
324 <pre>Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
325
326Args:
327 userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)
328 body: object, The request body.
329 The object takes the form of:
330
331{ # A draft email in the user's mailbox.
332 "message": { # An email message. # The message content of the draft.
333 "historyId": "A String", # The ID of the last history record that modified this message.
334 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
335 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
336 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
337 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
338 "size": 42, # Total number of bytes in the body of the message part.
339 },
340 "mimeType": "A String", # The MIME type of the message part.
341 "partId": "A String", # The immutable ID of the message part.
342 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
343 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
344 {
345 "name": "A String", # The name of the header before the : separator. For example, To.
346 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
347 },
348 ],
349 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
350 # Object with schema name: MessagePart
351 ],
352 },
353 "snippet": "A String", # A short part of the message text.
354 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
355 "sizeEstimate": 42, # Estimated size in bytes of the message.
356 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
357 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
358 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
359 # - The Subject headers must match.
360 "labelIds": [ # List of IDs of labels applied to this message.
361 "A String",
362 ],
363 "id": "A String", # The immutable ID of the message.
364 },
365 "id": "A String", # The immutable ID of the draft.
366}
367
368 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
369
370Returns:
371 An object of the form:
372
373 { # An email message.
374 "historyId": "A String", # The ID of the last history record that modified this message.
375 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
376 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
377 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
378 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
379 "size": 42, # Total number of bytes in the body of the message part.
380 },
381 "mimeType": "A String", # The MIME type of the message part.
382 "partId": "A String", # The immutable ID of the message part.
383 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
384 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
385 {
386 "name": "A String", # The name of the header before the : separator. For example, To.
387 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
388 },
389 ],
390 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
391 # Object with schema name: MessagePart
392 ],
393 },
394 "snippet": "A String", # A short part of the message text.
395 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
396 "sizeEstimate": 42, # Estimated size in bytes of the message.
397 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
398 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
399 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
400 # - The Subject headers must match.
401 "labelIds": [ # List of IDs of labels applied to this message.
402 "A String",
403 ],
404 "id": "A String", # The immutable ID of the message.
405 }</pre>
406</div>
407
408<div class="method">
409 <code class="details" id="update">update(userId, id, body=None, media_body=None)</code>
410 <pre>Replaces a draft's content.
411
412Args:
413 userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)
414 id: string, The ID of the draft to update. (required)
415 body: object, The request body.
416 The object takes the form of:
417
418{ # A draft email in the user's mailbox.
419 "message": { # An email message. # The message content of the draft.
420 "historyId": "A String", # The ID of the last history record that modified this message.
421 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
422 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
423 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
424 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
425 "size": 42, # Total number of bytes in the body of the message part.
426 },
427 "mimeType": "A String", # The MIME type of the message part.
428 "partId": "A String", # The immutable ID of the message part.
429 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
430 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
431 {
432 "name": "A String", # The name of the header before the : separator. For example, To.
433 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
434 },
435 ],
436 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
437 # Object with schema name: MessagePart
438 ],
439 },
440 "snippet": "A String", # A short part of the message text.
441 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
442 "sizeEstimate": 42, # Estimated size in bytes of the message.
443 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
444 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
445 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
446 # - The Subject headers must match.
447 "labelIds": [ # List of IDs of labels applied to this message.
448 "A String",
449 ],
450 "id": "A String", # The immutable ID of the message.
451 },
452 "id": "A String", # The immutable ID of the draft.
453}
454
455 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
456
457Returns:
458 An object of the form:
459
460 { # A draft email in the user's mailbox.
461 "message": { # An email message. # The message content of the draft.
462 "historyId": "A String", # The ID of the last history record that modified this message.
463 "payload": { # A single MIME message part. # The parsed email structure in the message parts.
464 "body": { # The body of a single MIME message part. # The message part body for this part, which may be empty for container MIME message parts.
465 "data": "A String", # The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
466 "attachmentId": "A String", # When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
467 "size": 42, # Total number of bytes in the body of the message part.
468 },
469 "mimeType": "A String", # The MIME type of the message part.
470 "partId": "A String", # The immutable ID of the message part.
471 "filename": "A String", # The filename of the attachment. Only present if this message part represents an attachment.
472 "headers": [ # List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
473 {
474 "name": "A String", # The name of the header before the : separator. For example, To.
475 "value": "A String", # The value of the header after the : separator. For example, someuser@example.com.
476 },
477 ],
478 "parts": [ # The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
479 # Object with schema name: MessagePart
480 ],
481 },
482 "snippet": "A String", # A short part of the message text.
483 "raw": "A String", # The entire email message in an RFC 2822 formatted and URL-safe base64 encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
484 "sizeEstimate": 42, # Estimated size in bytes of the message.
485 "threadId": "A String", # The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
486 # - The requested threadId must be specified on the Message or Draft.Message you supply with your request.
487 # - The References and In-Reply-To headers must be set in compliance with the <a href="https://tools.ietf.org/html/rfc2822"RFC 2822 standard.
488 # - The Subject headers must match.
489 "labelIds": [ # List of IDs of labels applied to this message.
490 "A String",
491 ],
492 "id": "A String", # The immutable ID of the message.
493 },
494 "id": "A String", # The immutable ID of the draft.
495 }</pre>
496</div>
497
498</body></html>