OLD | NEW |
1 library googleapis.oauth2.v2; | 1 library googleapis.oauth2.v2; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 15 matching lines...) Loading... |
26 | 26 |
27 /** View your basic profile info */ | 27 /** View your basic profile info */ |
28 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; | 28 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; |
29 | 29 |
30 | 30 |
31 final common_internal.ApiRequester _requester; | 31 final common_internal.ApiRequester _requester; |
32 | 32 |
33 UserinfoResourceApi get userinfo => new UserinfoResourceApi(_requester); | 33 UserinfoResourceApi get userinfo => new UserinfoResourceApi(_requester); |
34 | 34 |
35 Oauth2Api(http.Client client) : | 35 Oauth2Api(http.Client client) : |
36 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/"); | 36 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", ""); |
37 | 37 |
38 /** | 38 /** |
39 * Not documented yet. | 39 * Not documented yet. |
40 * | 40 * |
41 * Request parameters: | 41 * Request parameters: |
42 * | 42 * |
43 * [accessToken] - null | 43 * [accessToken] - null |
44 * | 44 * |
45 * [idToken] - null | 45 * [idToken] - null |
46 * | 46 * |
(...skipping 346 matching lines...) Loading... |
393 _json["picture"] = picture; | 393 _json["picture"] = picture; |
394 } | 394 } |
395 if (verifiedEmail != null) { | 395 if (verifiedEmail != null) { |
396 _json["verified_email"] = verifiedEmail; | 396 _json["verified_email"] = verifiedEmail; |
397 } | 397 } |
398 return _json; | 398 return _json; |
399 } | 399 } |
400 } | 400 } |
401 | 401 |
402 | 402 |
OLD | NEW |