list method
Future<ChannelResponse>
list(
{ - String part = 'contentDetails,id,localizations,player,snippet,status',
- List<String> partList = const [],
- String? categoryId,
- String? forUsername,
- String? id,
- bool? managedByMe,
- bool? mine,
- String? hl,
- int? maxResults,
- String? onBehalfOfContentOwner,
- String? pageToken,
})
Implementation
Future<ChannelResponse> list(
{String part = 'contentDetails,id,localizations,player,snippet,status',
List<String> partList = const [],
String? categoryId,
String? forUsername,
String? id,
bool? managedByMe,
bool? mine,
String? hl,
int? maxResults,
String? onBehalfOfContentOwner,
String? pageToken}) async {
if (apiKey == null)
return _rest.authList('Bearer $token', accept, buildParts(partList, part),
categoryId: categoryId,
forUsername: forUsername,
id: id,
managedByMe: managedByMe,
mine: mine,
hl: hl,
maxResults: maxResults,
onBehalfOfContentOwner: onBehalfOfContentOwner,
pageToken: pageToken);
else
return _rest.apiKeyList(apiKey!, accept, buildParts(partList, part),
categoryId: categoryId,
forUsername: forUsername,
id: id,
managedByMe: managedByMe,
mine: mine,
hl: hl,
maxResults: maxResults,
onBehalfOfContentOwner: onBehalfOfContentOwner,
pageToken: pageToken);
}