search method
Searches for URLs matching known threats.
Each URL and it's host-suffix and path-prefix expressions (up to a limited depth) are checked. This means that the response may contain URLs that were not included in the request, but are expressions of the requested URLs.
Request parameters:
urls - Required. The URLs to be looked up. Clients MUST NOT send more
than 50 URLs.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleSecuritySafebrowsingV5SearchUrlsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleSecuritySafebrowsingV5SearchUrlsResponse> search({
core.List<core.String>? urls,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'urls': ?urls,
'fields': ?$fields == null ? null : [$fields],
};
const url_ = 'v5/urls:search';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleSecuritySafebrowsingV5SearchUrlsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}