list method

Future<ChannelResponse> list({
  1. String part = 'contentDetails,id,localizations,snippet,status,brandingSettings',
  2. List<String> partList = const [],
  3. String? categoryId,
  4. String? forUsername,
  5. String? id,
  6. bool? managedByMe,
  7. bool? mine,
  8. String? hl,
  9. int? maxResults,
  10. String? onBehalfOfContentOwner,
  11. String? pageToken,
})

Returns a collection of zero or more channel resources that match the request criteria.

Implementation

Future<ChannelResponse> list(
    {String part =
        'contentDetails,id,localizations,snippet,status,brandingSettings',
    List<String> partList = const [],
    String? categoryId,
    String? forUsername,
    String? id,
    bool? managedByMe,
    bool? mine,
    String? hl,
    int? maxResults,
    String? onBehalfOfContentOwner,
    String? pageToken}) async {
  return _rest.list(
    apiKey,
    accept,
    buildParts(partList, part),
    categoryId: categoryId,
    forUsername: forUsername,
    id: id,
    managedByMe: managedByMe,
    mine: mine,
    hl: hl,
    maxResults: maxResults,
    onBehalfOfContentOwner: onBehalfOfContentOwner,
    pageToken: pageToken,
  );
}