OLD | NEW |
1 library googleapis.customsearch.v1; | 1 library googleapis.customsearch.v1; |
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 /** Lets you search over a website or collection of websites */ | 16 /** Lets you search over a website or collection of websites */ |
17 class CustomsearchApi { | 17 class CustomsearchApi { |
18 | 18 |
19 final common_internal.ApiRequester _requester; | 19 final common_internal.ApiRequester _requester; |
20 | 20 |
21 CseResourceApi get cse => new CseResourceApi(_requester); | 21 CseResourceApi get cse => new CseResourceApi(_requester); |
22 | 22 |
23 CustomsearchApi(http.Client client) : | 23 CustomsearchApi(http.Client client) : |
24 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/customsearch/"); | 24 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "customsearch/"); |
25 } | 25 } |
26 | 26 |
27 | 27 |
28 /** Not documented yet. */ | 28 /** Not documented yet. */ |
29 class CseResourceApi { | 29 class CseResourceApi { |
30 final common_internal.ApiRequester _requester; | 30 final common_internal.ApiRequester _requester; |
31 | 31 |
32 CseResourceApi(common_internal.ApiRequester client) : | 32 CseResourceApi(common_internal.ApiRequester client) : |
33 _requester = client; | 33 _requester = client; |
34 | 34 |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 _json["spelling"] = (spelling).toJson(); | 1384 _json["spelling"] = (spelling).toJson(); |
1385 } | 1385 } |
1386 if (url != null) { | 1386 if (url != null) { |
1387 _json["url"] = (url).toJson(); | 1387 _json["url"] = (url).toJson(); |
1388 } | 1388 } |
1389 return _json; | 1389 return _json; |
1390 } | 1390 } |
1391 } | 1391 } |
1392 | 1392 |
1393 | 1393 |
OLD | NEW |