OLD | NEW |
1 library googleapis.analytics.v3; | 1 library googleapis.analytics.v3; |
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; |
11 import '../common/common.dart' as common; | 11 import '../common/common.dart' as common; |
12 | 12 |
13 export '../common/common.dart' show ApiRequestError; | 13 export '../common/common.dart' show ApiRequestError; |
14 export '../common/common.dart' show DetailedApiRequestError; | 14 export '../common/common.dart' show DetailedApiRequestError; |
15 | 15 |
16 /** View and manage your Google Analytics data */ | 16 /** View and manage your Google Analytics data */ |
17 class AnalyticsApi { | 17 class AnalyticsApi { |
18 /** View and manage your Google Analytics data */ | 18 /** View and manage your Google Analytics data */ |
19 static const AnalyticsScope = "https://www.googleapis.com/auth/analytics"; | 19 static const AnalyticsScope = "https://www.googleapis.com/auth/analytics"; |
20 | 20 |
21 /** Edit Google Analytics management entities */ | 21 /** Edit Google Analytics management entities */ |
22 static const AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.e
dit"; | 22 static const AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.e
dit"; |
23 | 23 |
24 /** Manage Google Analytics Account users by email address */ | 24 /** Manage Google Analytics Account users by email address */ |
25 static const AnalyticsManageUsersScope = "https://www.googleapis.com/auth/anal
ytics.manage.users"; | 25 static const AnalyticsManageUsersScope = "https://www.googleapis.com/auth/anal
ytics.manage.users"; |
26 | 26 |
| 27 /** View Google Analytics user permissions */ |
| 28 static const AnalyticsManageUsersReadonlyScope = "https://www.googleapis.com/a
uth/analytics.manage.users.readonly"; |
| 29 |
27 /** | 30 /** |
28 * Create a new Google Analytics account along with its default property and | 31 * Create a new Google Analytics account along with its default property and |
29 * view | 32 * view |
30 */ | 33 */ |
31 static const AnalyticsProvisionScope = "https://www.googleapis.com/auth/analyt
ics.provision"; | 34 static const AnalyticsProvisionScope = "https://www.googleapis.com/auth/analyt
ics.provision"; |
32 | 35 |
33 /** View your Google Analytics data */ | 36 /** View your Google Analytics data */ |
34 static const AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analyti
cs.readonly"; | 37 static const AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analyti
cs.readonly"; |
35 | 38 |
36 | 39 |
(...skipping 11564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11601 _json["updated"] = (updated).toIso8601String(); | 11604 _json["updated"] = (updated).toIso8601String(); |
11602 } | 11605 } |
11603 if (websiteUrl != null) { | 11606 if (websiteUrl != null) { |
11604 _json["websiteUrl"] = websiteUrl; | 11607 _json["websiteUrl"] = websiteUrl; |
11605 } | 11608 } |
11606 return _json; | 11609 return _json; |
11607 } | 11610 } |
11608 } | 11611 } |
11609 | 11612 |
11610 | 11613 |
OLD | NEW |