| 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.oauth2.v2; | 3 library googleapis.oauth2.v2; |
| 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:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client oauth2/v2'; | 15 const core.String USER_AGENT = 'dart-api-client oauth2/v2'; |
| 16 | 16 |
| 17 /** Lets you access OAuth2 protocol related APIs. */ | 17 /** Lets you access OAuth2 protocol related APIs. */ |
| 18 class Oauth2Api { | 18 class Oauth2Api { |
| 19 /** Know your basic profile info and list of people in your circles. */ | 19 /** Know the list of people in your circles, your age range, and language */ |
| 20 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 20 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
| 21 | 21 |
| 22 /** Know who you are on Google */ | 22 /** Know who you are on Google */ |
| 23 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; | 23 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; |
| 24 | 24 |
| 25 /** View your email address */ | 25 /** View your email address */ |
| 26 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em
ail"; | 26 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em
ail"; |
| 27 | 27 |
| 28 /** View your basic profile info */ | 28 /** View your basic profile info */ |
| 29 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; | 29 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 } | 478 } |
| 479 if (picture != null) { | 479 if (picture != null) { |
| 480 _json["picture"] = picture; | 480 _json["picture"] = picture; |
| 481 } | 481 } |
| 482 if (verifiedEmail != null) { | 482 if (verifiedEmail != null) { |
| 483 _json["verified_email"] = verifiedEmail; | 483 _json["verified_email"] = verifiedEmail; |
| 484 } | 484 } |
| 485 return _json; | 485 return _json; |
| 486 } | 486 } |
| 487 } | 487 } |
| OLD | NEW |