OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://mail.google.com/": { | 5 "https://mail.google.com/": { |
6 "description": "View and manage your mail" | 6 "description": "View and manage your mail" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/gmail.compose": { | 8 "https://www.googleapis.com/auth/gmail.compose": { |
9 "description": "Manage drafts and send emails" | 9 "description": "Manage drafts and send emails" |
10 }, | 10 }, |
11 "https://www.googleapis.com/auth/gmail.modify": { | 11 "https://www.googleapis.com/auth/gmail.modify": { |
12 "description": "View and modify but not delete your email" | 12 "description": "View and modify but not delete your email" |
13 }, | 13 }, |
14 "https://www.googleapis.com/auth/gmail.readonly": { | 14 "https://www.googleapis.com/auth/gmail.readonly": { |
15 "description": "View your emails messages and settings" | 15 "description": "View your emails messages and settings" |
16 } | 16 } |
17 } | 17 } |
18 } | 18 } |
19 }, | 19 }, |
20 "basePath": "/gmail/v1/users/", | 20 "basePath": "/gmail/v1/users/", |
21 "baseUrl": "https://www.googleapis.com/gmail/v1/users/", | 21 "baseUrl": "https://www.googleapis.com/gmail/v1/users/", |
22 "batchPath": "batch", | 22 "batchPath": "batch", |
23 "description": "The Gmail REST API.", | 23 "description": "The Gmail REST API.", |
24 "discoveryVersion": "v1", | 24 "discoveryVersion": "v1", |
25 "documentationLink": "https://developers.google.com/gmail/api/", | 25 "documentationLink": "https://developers.google.com/gmail/api/", |
26 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/5fnY39OGLjxI_epC657MRv3fFjE\"", | 26 "etag": "\"8MqRhZzx1kw0pwpjahVJEB3eI6w/FGWIXwFi3bZjyIWUjsVvCy3aEZU\"", |
27 "icons": { | 27 "icons": { |
28 "x16": "https://www.google.com/images/icons/product/googlemail-16.png", | 28 "x16": "https://www.google.com/images/icons/product/googlemail-16.png", |
29 "x32": "https://www.google.com/images/icons/product/googlemail-32.png" | 29 "x32": "https://www.google.com/images/icons/product/googlemail-32.png" |
30 }, | 30 }, |
31 "id": "gmail:v1", | 31 "id": "gmail:v1", |
32 "kind": "discovery#restDescription", | 32 "kind": "discovery#restDescription", |
33 "name": "gmail", | 33 "name": "gmail", |
34 "ownerDomain": "google.com", | 34 "ownerDomain": "google.com", |
35 "ownerName": "Google", | 35 "ownerName": "Google", |
36 "parameters": { | 36 "parameters": { |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 "multipart": true, | 700 "multipart": true, |
701 "path": "/upload/gmail/v1/users/{userId}
/messages/import" | 701 "path": "/upload/gmail/v1/users/{userId}
/messages/import" |
702 } | 702 } |
703 } | 703 } |
704 }, | 704 }, |
705 "parameterOrder": [ | 705 "parameterOrder": [ |
706 "userId" | 706 "userId" |
707 ], | 707 ], |
708 "parameters": { | 708 "parameters": { |
709 "internalDateSource": { | 709 "internalDateSource": { |
| 710 "default": "dateHeader", |
710 "description": "Source for Gmail's internal
date of the message.", | 711 "description": "Source for Gmail's internal
date of the message.", |
711 "enum": [ | 712 "enum": [ |
712 "dateHeader", | 713 "dateHeader", |
713 "receivedTime" | 714 "receivedTime" |
714 ], | 715 ], |
715 "enumDescriptions": [ | 716 "enumDescriptions": [ |
716 "", | 717 "", |
717 "" | 718 "" |
718 ], | 719 ], |
719 "location": "query", | 720 "location": "query", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 "multipart": true, | 759 "multipart": true, |
759 "path": "/upload/gmail/v1/users/{userId}
/messages" | 760 "path": "/upload/gmail/v1/users/{userId}
/messages" |
760 } | 761 } |
761 } | 762 } |
762 }, | 763 }, |
763 "parameterOrder": [ | 764 "parameterOrder": [ |
764 "userId" | 765 "userId" |
765 ], | 766 ], |
766 "parameters": { | 767 "parameters": { |
767 "internalDateSource": { | 768 "internalDateSource": { |
| 769 "default": "receivedTime", |
768 "description": "Source for Gmail's internal
date of the message.", | 770 "description": "Source for Gmail's internal
date of the message.", |
769 "enum": [ | 771 "enum": [ |
770 "dateHeader", | 772 "dateHeader", |
771 "receivedTime" | 773 "receivedTime" |
772 ], | 774 ], |
773 "enumDescriptions": [ | 775 "enumDescriptions": [ |
774 "", | 776 "", |
775 "" | 777 "" |
776 ], | 778 ], |
777 "location": "query", | 779 "location": "query", |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 "scopes": [ | 1263 "scopes": [ |
1262 "https://mail.google.com/", | 1264 "https://mail.google.com/", |
1263 "https://www.googleapis.com/auth/gmail.modify" | 1265 "https://www.googleapis.com/auth/gmail.modify" |
1264 ] | 1266 ] |
1265 } | 1267 } |
1266 } | 1268 } |
1267 } | 1269 } |
1268 } | 1270 } |
1269 } | 1271 } |
1270 }, | 1272 }, |
1271 "revision": "20140902", | 1273 "revision": "20141001", |
1272 "rootUrl": "https://www.googleapis.com/", | 1274 "rootUrl": "https://www.googleapis.com/", |
1273 "schemas": { | 1275 "schemas": { |
1274 "Draft": { | 1276 "Draft": { |
1275 "description": "A draft email in the user's mailbox.", | 1277 "description": "A draft email in the user's mailbox.", |
1276 "id": "Draft", | 1278 "id": "Draft", |
1277 "properties": { | 1279 "properties": { |
1278 "id": { | 1280 "id": { |
1279 "annotations": { | 1281 "annotations": { |
1280 "required": [ | 1282 "required": [ |
1281 "gmail.users.drafts.send" | 1283 "gmail.users.drafts.send" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 "enum": [ | 1356 "enum": [ |
1355 "hide", | 1357 "hide", |
1356 "show" | 1358 "show" |
1357 ], | 1359 ], |
1358 "enumDescriptions": [ | 1360 "enumDescriptions": [ |
1359 "", | 1361 "", |
1360 "" | 1362 "" |
1361 ], | 1363 ], |
1362 "type": "string" | 1364 "type": "string" |
1363 }, | 1365 }, |
| 1366 "messagesTotal": { |
| 1367 "description": "The total number of messages with the label.
", |
| 1368 "format": "int32", |
| 1369 "type": "integer" |
| 1370 }, |
| 1371 "messagesUnread": { |
| 1372 "description": "The number of unread messages with the label
.", |
| 1373 "format": "int32", |
| 1374 "type": "integer" |
| 1375 }, |
1364 "name": { | 1376 "name": { |
1365 "annotations": { | 1377 "annotations": { |
1366 "required": [ | 1378 "required": [ |
1367 "gmail.users.labels.create", | 1379 "gmail.users.labels.create", |
1368 "gmail.users.labels.update" | 1380 "gmail.users.labels.update" |
1369 ] | 1381 ] |
1370 }, | 1382 }, |
1371 "description": "The display name of the label.", | 1383 "description": "The display name of the label.", |
1372 "type": "string" | 1384 "type": "string" |
1373 }, | 1385 }, |
| 1386 "threadsTotal": { |
| 1387 "description": "The total number of threads with the label."
, |
| 1388 "format": "int32", |
| 1389 "type": "integer" |
| 1390 }, |
| 1391 "threadsUnread": { |
| 1392 "description": "The number of unread threads with the label.
", |
| 1393 "format": "int32", |
| 1394 "type": "integer" |
| 1395 }, |
1374 "type": { | 1396 "type": { |
1375 "description": "The owner type for the label. User labels ar
e created by the user and can be modified and deleted by the user and can be app
lied to any message or thread. System labels are internally created and cannot b
e added, modified, or deleted. System labels may be able to be applied to or rem
oved from messages and threads under some circumstances but this is not guarante
ed. For example, users can apply and remove the INBOX and UNREAD labels from mes
sages and threads, but cannot apply or remove the DRAFTS or SENT labels from mes
sages or threads.", | 1397 "description": "The owner type for the label. User labels ar
e created by the user and can be modified and deleted by the user and can be app
lied to any message or thread. System labels are internally created and cannot b
e added, modified, or deleted. System labels may be able to be applied to or rem
oved from messages and threads under some circumstances but this is not guarante
ed. For example, users can apply and remove the INBOX and UNREAD labels from mes
sages and threads, but cannot apply or remove the DRAFTS or SENT labels from mes
sages or threads.", |
1376 "enum": [ | 1398 "enum": [ |
1377 "system", | 1399 "system", |
1378 "user" | 1400 "user" |
1379 ], | 1401 ], |
1380 "enumDescriptions": [ | 1402 "enumDescriptions": [ |
1381 "", | 1403 "", |
1382 "" | 1404 "" |
1383 ], | 1405 ], |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 "sizeEstimate": { | 1549 "sizeEstimate": { |
1528 "description": "Estimated size in bytes of the message.", | 1550 "description": "Estimated size in bytes of the message.", |
1529 "format": "int32", | 1551 "format": "int32", |
1530 "type": "integer" | 1552 "type": "integer" |
1531 }, | 1553 }, |
1532 "snippet": { | 1554 "snippet": { |
1533 "description": "A short part of the message text.", | 1555 "description": "A short part of the message text.", |
1534 "type": "string" | 1556 "type": "string" |
1535 }, | 1557 }, |
1536 "threadId": { | 1558 "threadId": { |
1537 "description": "The ID of the thread the message belongs to.
To add a message or draft to a thread, the following criteria must be met: \n-
The requested threadId must be specified on the Message or Draft.Message you sup
ply with your request. \n- The References and In-Reply-To headers must be set in
compliance with the <a href=\"https://tools.ietf.org/html/rfc2822\"RFC 2822 sta
ndard. \n- The Subject headers must match.", | 1559 "description": "The ID of the thread the message belongs to.
To add a message or draft to a thread, the following criteria must be met: \n-
The requested threadId must be specified on the Message or Draft.Message you sup
ply with your request. \n- The References and In-Reply-To headers must be set in
compliance with the RFC 2822 standard. \n- The Subject headers must match.", |
1538 "type": "string" | 1560 "type": "string" |
1539 } | 1561 } |
1540 }, | 1562 }, |
1541 "type": "object" | 1563 "type": "object" |
1542 }, | 1564 }, |
1543 "MessagePart": { | 1565 "MessagePart": { |
1544 "description": "A single MIME message part.", | 1566 "description": "A single MIME message part.", |
1545 "id": "MessagePart", | 1567 "id": "MessagePart", |
1546 "properties": { | 1568 "properties": { |
1547 "body": { | 1569 "body": { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1677 "type": "string" | 1699 "type": "string" |
1678 } | 1700 } |
1679 }, | 1701 }, |
1680 "type": "object" | 1702 "type": "object" |
1681 } | 1703 } |
1682 }, | 1704 }, |
1683 "servicePath": "gmail/v1/users/", | 1705 "servicePath": "gmail/v1/users/", |
1684 "title": "Gmail API", | 1706 "title": "Gmail API", |
1685 "version": "v1" | 1707 "version": "v1" |
1686 } | 1708 } |
OLD | NEW |