OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.gmail.v1; | 3 library googleapis.gmail.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:crypto/crypto.dart' as crypto; | 10 import 'package:crypto/crypto.dart' as crypto; |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 /** Manage mailbox labels */ | 31 /** Manage mailbox labels */ |
32 static const GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"
; | 32 static const GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"
; |
33 | 33 |
34 /** View and modify but not delete your email */ | 34 /** View and modify but not delete your email */ |
35 static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"
; | 35 static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"
; |
36 | 36 |
37 /** View your emails messages and settings */ | 37 /** View your emails messages and settings */ |
38 static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.reado
nly"; | 38 static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.reado
nly"; |
39 | 39 |
| 40 /** Send email on your behalf */ |
| 41 static const GmailSendScope = "https://www.googleapis.com/auth/gmail.send"; |
| 42 |
40 | 43 |
41 final commons.ApiRequester _requester; | 44 final commons.ApiRequester _requester; |
42 | 45 |
43 UsersResourceApi get users => new UsersResourceApi(_requester); | 46 UsersResourceApi get users => new UsersResourceApi(_requester); |
44 | 47 |
45 GmailApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "gmail/v1/users/"}) : | 48 GmailApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "gmail/v1/users/"}) : |
46 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 49 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
47 } | 50 } |
48 | 51 |
49 | 52 |
(...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2824 var _json = new core.Map(); | 2827 var _json = new core.Map(); |
2825 if (expiration != null) { | 2828 if (expiration != null) { |
2826 _json["expiration"] = expiration; | 2829 _json["expiration"] = expiration; |
2827 } | 2830 } |
2828 if (historyId != null) { | 2831 if (historyId != null) { |
2829 _json["historyId"] = historyId; | 2832 _json["historyId"] = historyId; |
2830 } | 2833 } |
2831 return _json; | 2834 return _json; |
2832 } | 2835 } |
2833 } | 2836 } |
OLD | NEW |