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 }, |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 } | 35 } |
36 } | 36 } |
37 }, | 37 }, |
38 "basePath": "/gmail/v1/users/", | 38 "basePath": "/gmail/v1/users/", |
39 "baseUrl": "https://www.googleapis.com/gmail/v1/users/", | 39 "baseUrl": "https://www.googleapis.com/gmail/v1/users/", |
40 "batchPath": "batch", | 40 "batchPath": "batch", |
41 "description": "Access Gmail mailboxes including sending user email.", | 41 "description": "Access Gmail mailboxes including sending user email.", |
42 "discoveryVersion": "v1", | 42 "discoveryVersion": "v1", |
43 "documentationLink": "https://developers.google.com/gmail/api/", | 43 "documentationLink": "https://developers.google.com/gmail/api/", |
44 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/V8B0BNh6Gl7mnZWtADepvF4qGmI\"", | 44 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/p_Ki8ZAiDCpzN2N5osErTV2szew\"", |
45 "icons": { | 45 "icons": { |
46 "x16": "https://www.google.com/images/icons/product/googlemail-16.png", | 46 "x16": "https://www.google.com/images/icons/product/googlemail-16.png", |
47 "x32": "https://www.google.com/images/icons/product/googlemail-32.png" | 47 "x32": "https://www.google.com/images/icons/product/googlemail-32.png" |
48 }, | 48 }, |
49 "id": "gmail:v1", | 49 "id": "gmail:v1", |
50 "kind": "discovery#restDescription", | 50 "kind": "discovery#restDescription", |
51 "name": "gmail", | 51 "name": "gmail", |
52 "ownerDomain": "google.com", | 52 "ownerDomain": "google.com", |
53 "ownerName": "Google", | 53 "ownerName": "Google", |
54 "parameters": { | 54 "parameters": { |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 } | 736 } |
737 }, | 737 }, |
738 "path": "{userId}/messages/batchDelete", | 738 "path": "{userId}/messages/batchDelete", |
739 "request": { | 739 "request": { |
740 "$ref": "BatchDeleteMessagesRequest" | 740 "$ref": "BatchDeleteMessagesRequest" |
741 }, | 741 }, |
742 "scopes": [ | 742 "scopes": [ |
743 "https://mail.google.com/" | 743 "https://mail.google.com/" |
744 ] | 744 ] |
745 }, | 745 }, |
| 746 "batchModify": { |
| 747 "description": "Modifies the labels on the specified
messages.", |
| 748 "httpMethod": "POST", |
| 749 "id": "gmail.users.messages.batchModify", |
| 750 "parameterOrder": [ |
| 751 "userId" |
| 752 ], |
| 753 "parameters": { |
| 754 "userId": { |
| 755 "default": "me", |
| 756 "description": "The user's email address. Th
e special value me can be used to indicate the authenticated user.", |
| 757 "location": "path", |
| 758 "required": true, |
| 759 "type": "string" |
| 760 } |
| 761 }, |
| 762 "path": "{userId}/messages/batchModify", |
| 763 "request": { |
| 764 "$ref": "BatchModifyMessagesRequest" |
| 765 }, |
| 766 "scopes": [ |
| 767 "https://mail.google.com/", |
| 768 "https://www.googleapis.com/auth/gmail.modify" |
| 769 ] |
| 770 }, |
746 "delete": { | 771 "delete": { |
747 "description": "Immediately and permanently deletes
the specified message. This operation cannot be undone. Prefer messages.trash in
stead.", | 772 "description": "Immediately and permanently deletes
the specified message. This operation cannot be undone. Prefer messages.trash in
stead.", |
748 "httpMethod": "DELETE", | 773 "httpMethod": "DELETE", |
749 "id": "gmail.users.messages.delete", | 774 "id": "gmail.users.messages.delete", |
750 "parameterOrder": [ | 775 "parameterOrder": [ |
751 "userId", | 776 "userId", |
752 "id" | 777 "id" |
753 ], | 778 ], |
754 "parameters": { | 779 "parameters": { |
755 "id": { | 780 "id": { |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 "format": "uint32", | 1024 "format": "uint32", |
1000 "location": "query", | 1025 "location": "query", |
1001 "type": "integer" | 1026 "type": "integer" |
1002 }, | 1027 }, |
1003 "pageToken": { | 1028 "pageToken": { |
1004 "description": "Page token to retrieve a spe
cific page of results in the list.", | 1029 "description": "Page token to retrieve a spe
cific page of results in the list.", |
1005 "location": "query", | 1030 "location": "query", |
1006 "type": "string" | 1031 "type": "string" |
1007 }, | 1032 }, |
1008 "q": { | 1033 "q": { |
1009 "description": "Only return messages matchin
g the specified query. Supports the same query format as the Gmail search box. F
or example, \"from:someuser@example.com rfc822msgid: is:unread\".", | 1034 "description": "Only return messages matchin
g the specified query. Supports the same query format as the Gmail search box. F
or example, \"from:someuser@example.com rfc822msgid: is:unread\". Parameter cann
ot be used when accessing the api using the gmail.metadata scope.", |
1010 "location": "query", | 1035 "location": "query", |
1011 "type": "string" | 1036 "type": "string" |
1012 }, | 1037 }, |
1013 "userId": { | 1038 "userId": { |
1014 "default": "me", | 1039 "default": "me", |
1015 "description": "The user's email address. Th
e special value me can be used to indicate the authenticated user.", | 1040 "description": "The user's email address. Th
e special value me can be used to indicate the authenticated user.", |
1016 "location": "path", | 1041 "location": "path", |
1017 "required": true, | 1042 "required": true, |
1018 "type": "string" | 1043 "type": "string" |
1019 } | 1044 } |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 "format": "uint32", | 2040 "format": "uint32", |
2016 "location": "query", | 2041 "location": "query", |
2017 "type": "integer" | 2042 "type": "integer" |
2018 }, | 2043 }, |
2019 "pageToken": { | 2044 "pageToken": { |
2020 "description": "Page token to retrieve a spe
cific page of results in the list.", | 2045 "description": "Page token to retrieve a spe
cific page of results in the list.", |
2021 "location": "query", | 2046 "location": "query", |
2022 "type": "string" | 2047 "type": "string" |
2023 }, | 2048 }, |
2024 "q": { | 2049 "q": { |
2025 "description": "Only return threads matching
the specified query. Supports the same query format as the Gmail search box. Fo
r example, \"from:someuser@example.com rfc822msgid: is:unread\".", | 2050 "description": "Only return threads matching
the specified query. Supports the same query format as the Gmail search box. Fo
r example, \"from:someuser@example.com rfc822msgid: is:unread\". Parameter canno
t be used when accessing the api using the gmail.metadata scope.", |
2026 "location": "query", | 2051 "location": "query", |
2027 "type": "string" | 2052 "type": "string" |
2028 }, | 2053 }, |
2029 "userId": { | 2054 "userId": { |
2030 "default": "me", | 2055 "default": "me", |
2031 "description": "The user's email address. Th
e special value me can be used to indicate the authenticated user.", | 2056 "description": "The user's email address. Th
e special value me can be used to indicate the authenticated user.", |
2032 "location": "path", | 2057 "location": "path", |
2033 "required": true, | 2058 "required": true, |
2034 "type": "string" | 2059 "type": "string" |
2035 } | 2060 } |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2142 "scopes": [ | 2167 "scopes": [ |
2143 "https://mail.google.com/", | 2168 "https://mail.google.com/", |
2144 "https://www.googleapis.com/auth/gmail.modify" | 2169 "https://www.googleapis.com/auth/gmail.modify" |
2145 ] | 2170 ] |
2146 } | 2171 } |
2147 } | 2172 } |
2148 } | 2173 } |
2149 } | 2174 } |
2150 } | 2175 } |
2151 }, | 2176 }, |
2152 "revision": "20161019", | 2177 "revision": "20161206", |
2153 "rootUrl": "https://www.googleapis.com/", | 2178 "rootUrl": "https://www.googleapis.com/", |
2154 "schemas": { | 2179 "schemas": { |
2155 "AutoForwarding": { | 2180 "AutoForwarding": { |
2156 "description": "Auto-forwarding settings for an account.", | 2181 "description": "Auto-forwarding settings for an account.", |
2157 "id": "AutoForwarding", | 2182 "id": "AutoForwarding", |
2158 "properties": { | 2183 "properties": { |
2159 "disposition": { | 2184 "disposition": { |
2160 "description": "The state that a message should be left in a
fter it has been forwarded.", | 2185 "description": "The state that a message should be left in a
fter it has been forwarded.", |
2161 "enum": [ | 2186 "enum": [ |
2162 "archive", | 2187 "archive", |
(...skipping 28 matching lines...) Expand all Loading... |
2191 "ids": { | 2216 "ids": { |
2192 "description": "The IDs of the messages to delete.", | 2217 "description": "The IDs of the messages to delete.", |
2193 "items": { | 2218 "items": { |
2194 "type": "string" | 2219 "type": "string" |
2195 }, | 2220 }, |
2196 "type": "array" | 2221 "type": "array" |
2197 } | 2222 } |
2198 }, | 2223 }, |
2199 "type": "object" | 2224 "type": "object" |
2200 }, | 2225 }, |
| 2226 "BatchModifyMessagesRequest": { |
| 2227 "id": "BatchModifyMessagesRequest", |
| 2228 "properties": { |
| 2229 "addLabelIds": { |
| 2230 "description": "A list of label IDs to add to messages.", |
| 2231 "items": { |
| 2232 "type": "string" |
| 2233 }, |
| 2234 "type": "array" |
| 2235 }, |
| 2236 "ids": { |
| 2237 "description": "The IDs of the messages to modify. There is
a limit of 1000 ids per request.", |
| 2238 "items": { |
| 2239 "type": "string" |
| 2240 }, |
| 2241 "type": "array" |
| 2242 }, |
| 2243 "removeLabelIds": { |
| 2244 "description": "A list of label IDs to remove from messages.
", |
| 2245 "items": { |
| 2246 "type": "string" |
| 2247 }, |
| 2248 "type": "array" |
| 2249 } |
| 2250 }, |
| 2251 "type": "object" |
| 2252 }, |
2201 "Draft": { | 2253 "Draft": { |
2202 "description": "A draft email in the user's mailbox.", | 2254 "description": "A draft email in the user's mailbox.", |
2203 "id": "Draft", | 2255 "id": "Draft", |
2204 "properties": { | 2256 "properties": { |
2205 "id": { | 2257 "id": { |
2206 "annotations": { | 2258 "annotations": { |
2207 "required": [ | 2259 "required": [ |
2208 "gmail.users.drafts.send" | 2260 "gmail.users.drafts.send" |
2209 ] | 2261 ] |
2210 }, | 2262 }, |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2815 "attachmentId": { | 2867 "attachmentId": { |
2816 "description": "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.", | 2868 "description": "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.", |
2817 "type": "string" | 2869 "type": "string" |
2818 }, | 2870 }, |
2819 "data": { | 2871 "data": { |
2820 "description": "The body data of a MIME message part as a ba
se64url encoded string. May be empty for MIME container types that have no messa
ge 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.", | 2872 "description": "The body data of a MIME message part as a ba
se64url encoded string. May be empty for MIME container types that have no messa
ge 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.", |
2821 "format": "byte", | 2873 "format": "byte", |
2822 "type": "string" | 2874 "type": "string" |
2823 }, | 2875 }, |
2824 "size": { | 2876 "size": { |
2825 "description": "Total number of bytes in the body of the mes
sage part.", | 2877 "description": "Number of bytes for the message part data (e
ncoding notwithstanding).", |
2826 "format": "int32", | 2878 "format": "int32", |
2827 "type": "integer" | 2879 "type": "integer" |
2828 } | 2880 } |
2829 }, | 2881 }, |
2830 "type": "object" | 2882 "type": "object" |
2831 }, | 2883 }, |
2832 "MessagePartHeader": { | 2884 "MessagePartHeader": { |
2833 "id": "MessagePartHeader", | 2885 "id": "MessagePartHeader", |
2834 "properties": { | 2886 "properties": { |
2835 "name": { | 2887 "name": { |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3156 "type": "string" | 3208 "type": "string" |
3157 } | 3209 } |
3158 }, | 3210 }, |
3159 "type": "object" | 3211 "type": "object" |
3160 } | 3212 } |
3161 }, | 3213 }, |
3162 "servicePath": "gmail/v1/users/", | 3214 "servicePath": "gmail/v1/users/", |
3163 "title": "Gmail API", | 3215 "title": "Gmail API", |
3164 "version": "v1" | 3216 "version": "v1" |
3165 } | 3217 } |
OLD | NEW |