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": "\"8MqRhZzx1kw0pwpjahVJEB3eI6w/FGWIXwFi3bZjyIWUjsVvCy3aEZU\"", | 26 "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/VTv_VctBdqXjsksB5IcLu4ps6Nw\"", |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 }, | 74 }, |
75 "userIp": { | 75 "userIp": { |
76 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", | 76 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
77 "location": "query", | 77 "location": "query", |
78 "type": "string" | 78 "type": "string" |
79 } | 79 } |
80 }, | 80 }, |
81 "protocol": "rest", | 81 "protocol": "rest", |
82 "resources": { | 82 "resources": { |
83 "users": { | 83 "users": { |
| 84 "methods": { |
| 85 "getProfile": { |
| 86 "description": "Gets the current user's Gmail profile.", |
| 87 "httpMethod": "GET", |
| 88 "id": "gmail.users.getProfile", |
| 89 "parameterOrder": [ |
| 90 "userId" |
| 91 ], |
| 92 "parameters": { |
| 93 "userId": { |
| 94 "default": "me", |
| 95 "description": "The user's email address. The specia
l value me can be used to indicate the authenticated user.", |
| 96 "location": "path", |
| 97 "required": true, |
| 98 "type": "string" |
| 99 } |
| 100 }, |
| 101 "path": "{userId}/profile", |
| 102 "response": { |
| 103 "$ref": "Profile" |
| 104 }, |
| 105 "scopes": [ |
| 106 "https://mail.google.com/", |
| 107 "https://www.googleapis.com/auth/gmail.compose", |
| 108 "https://www.googleapis.com/auth/gmail.modify", |
| 109 "https://www.googleapis.com/auth/gmail.readonly" |
| 110 ] |
| 111 } |
| 112 }, |
84 "resources": { | 113 "resources": { |
85 "drafts": { | 114 "drafts": { |
86 "methods": { | 115 "methods": { |
87 "create": { | 116 "create": { |
88 "description": "Creates a new draft with the DRAFT l
abel.", | 117 "description": "Creates a new draft with the DRAFT l
abel.", |
89 "httpMethod": "POST", | 118 "httpMethod": "POST", |
90 "id": "gmail.users.drafts.create", | 119 "id": "gmail.users.drafts.create", |
91 "mediaUpload": { | 120 "mediaUpload": { |
92 "accept": [ | 121 "accept": [ |
93 "message/rfc822" | 122 "message/rfc822" |
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 "scopes": [ | 1292 "scopes": [ |
1264 "https://mail.google.com/", | 1293 "https://mail.google.com/", |
1265 "https://www.googleapis.com/auth/gmail.modify" | 1294 "https://www.googleapis.com/auth/gmail.modify" |
1266 ] | 1295 ] |
1267 } | 1296 } |
1268 } | 1297 } |
1269 } | 1298 } |
1270 } | 1299 } |
1271 } | 1300 } |
1272 }, | 1301 }, |
1273 "revision": "20141001", | 1302 "revision": "20141009", |
1274 "rootUrl": "https://www.googleapis.com/", | 1303 "rootUrl": "https://www.googleapis.com/", |
1275 "schemas": { | 1304 "schemas": { |
1276 "Draft": { | 1305 "Draft": { |
1277 "description": "A draft email in the user's mailbox.", | 1306 "description": "A draft email in the user's mailbox.", |
1278 "id": "Draft", | 1307 "id": "Draft", |
1279 "properties": { | 1308 "properties": { |
1280 "id": { | 1309 "id": { |
1281 "annotations": { | 1310 "annotations": { |
1282 "required": [ | 1311 "required": [ |
1283 "gmail.users.drafts.send" | 1312 "gmail.users.drafts.send" |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1667 "removeLabelIds": { | 1696 "removeLabelIds": { |
1668 "description": "A list of IDs of labels to remove from this
thread.", | 1697 "description": "A list of IDs of labels to remove from this
thread.", |
1669 "items": { | 1698 "items": { |
1670 "type": "string" | 1699 "type": "string" |
1671 }, | 1700 }, |
1672 "type": "array" | 1701 "type": "array" |
1673 } | 1702 } |
1674 }, | 1703 }, |
1675 "type": "object" | 1704 "type": "object" |
1676 }, | 1705 }, |
| 1706 "Profile": { |
| 1707 "description": "Profile for a Gmail user.", |
| 1708 "id": "Profile", |
| 1709 "properties": { |
| 1710 "emailAddress": { |
| 1711 "description": "The user's email address.", |
| 1712 "type": "string" |
| 1713 }, |
| 1714 "historyId": { |
| 1715 "description": "The ID of the mailbox's current history reco
rd.", |
| 1716 "format": "uint64", |
| 1717 "type": "string" |
| 1718 }, |
| 1719 "messagesTotal": { |
| 1720 "description": "The total number of messages in the mailbox.
", |
| 1721 "format": "int32", |
| 1722 "type": "integer" |
| 1723 }, |
| 1724 "threadsTotal": { |
| 1725 "description": "The total number of threads in the mailbox."
, |
| 1726 "format": "int32", |
| 1727 "type": "integer" |
| 1728 } |
| 1729 }, |
| 1730 "type": "object" |
| 1731 }, |
1677 "Thread": { | 1732 "Thread": { |
1678 "description": "A collection of messages representing a conversation
.", | 1733 "description": "A collection of messages representing a conversation
.", |
1679 "id": "Thread", | 1734 "id": "Thread", |
1680 "properties": { | 1735 "properties": { |
1681 "historyId": { | 1736 "historyId": { |
1682 "description": "The ID of the last history record that modif
ied this thread.", | 1737 "description": "The ID of the last history record that modif
ied this thread.", |
1683 "format": "uint64", | 1738 "format": "uint64", |
1684 "type": "string" | 1739 "type": "string" |
1685 }, | 1740 }, |
1686 "id": { | 1741 "id": { |
(...skipping 12 matching lines...) Expand all Loading... |
1699 "type": "string" | 1754 "type": "string" |
1700 } | 1755 } |
1701 }, | 1756 }, |
1702 "type": "object" | 1757 "type": "object" |
1703 } | 1758 } |
1704 }, | 1759 }, |
1705 "servicePath": "gmail/v1/users/", | 1760 "servicePath": "gmail/v1/users/", |
1706 "title": "Gmail API", | 1761 "title": "Gmail API", |
1707 "version": "v1" | 1762 "version": "v1" |
1708 } | 1763 } |
OLD | NEW |