list method
Future<SearchListResponse>
list(
- {String part = 'snippet',
- List<
String> partList = const [], - String? channelId,
- String? channelType,
- String? eventType,
- bool? forContentOwner,
- bool? forDeveloper,
- bool? forMine,
- String? location,
- String? locationRadius,
- int? maxResults,
- String? onBehalfOfContentOwner,
- String? order,
- String? pageToken,
- String? publishedAfter,
- String? publishedBefore,
- String? q,
- String? regionCode,
- String? relevanceLanguage,
- String? safeSearch,
- String? topicId,
- String? type,
- String? videoCaption,
- String? videoCategoryId,
- String? videoDefinition,
- String? videoDimension,
- String? videoDuration,
- String? videoEmbeddable,
- String? videoLicense,
- String? videoSyndicated,
- String? videoType}
Returns a collection of search results that match the query parameters specified in the API request. By default, a search result set identifies matching video, channel, and Playlist resources, but you can also configure queries to only retrieve a specific type of resource.
Implementation
Future<SearchListResponse> list(
{String part = 'snippet',
List<String> partList = const [],
String? channelId,
String? channelType,
String? eventType,
bool? forContentOwner,
bool? forDeveloper,
bool? forMine,
String? location,
String? locationRadius,
int? maxResults,
String? onBehalfOfContentOwner,
String? order,
String? pageToken,
String? publishedAfter,
String? publishedBefore,
String? q,
String? regionCode,
String? relevanceLanguage,
String? safeSearch,
String? topicId,
String? type,
String? videoCaption,
String? videoCategoryId,
String? videoDefinition,
String? videoDimension,
String? videoDuration,
String? videoEmbeddable,
String? videoLicense,
String? videoSyndicated,
String? videoType}) async {
return _rest.list(
apiKey,
accept,
buildParts(partList, part),
channelId: channelId,
channelType: channelType,
eventType: eventType,
forContentOwner: forContentOwner,
forDeveloper: forDeveloper,
forMine: forMine,
location: location,
locationRadius: locationRadius,
maxResults: maxResults,
onBehalfOfContentOwner: onBehalfOfContentOwner,
order: order,
pageToken: pageToken,
publishedAfter: publishedAfter,
publishedBefore: publishedBefore,
q: q,
regionCode: regionCode,
relevanceLanguage: relevanceLanguage,
safeSearch: safeSearch,
topicId: topicId,
type: type,
videoCaption: videoCaption,
videoCategoryId: videoCategoryId,
videoDefinition: videoDefinition,
videoDimension: videoDimension,
videoDuration: videoDuration,
videoEmbeddable: videoEmbeddable,
videoLicense: videoLicense,
videoSyndicated: videoSyndicated,
videoType: videoType,
);
}