list method
Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.
Implementation
Future<PlaylistItemListResponse> list(
{String part = 'contentDetails,id,localizations,player,snippet,status',
List<String> partList = const [],
String? playlistId,
String? id,
int? maxResults,
String? onBehalfOfContentOwner,
String? videoId,
String? pageToken}) async {
if (apiKey == null)
return _rest.authList('Bearer $token', accept, buildParts(partList, part),
playlistId: playlistId,
id: id,
maxResults: maxResults,
onBehalfOfContentOwner: onBehalfOfContentOwner,
pageToken: pageToken,
videoId: videoId);
else
return _rest.apiKeyList(apiKey!, accept, buildParts(partList, part),
playlistId: playlistId,
id: id,
maxResults: maxResults,
onBehalfOfContentOwner: onBehalfOfContentOwner,
pageToken: pageToken,
videoId: videoId);
}