list method
Future<SubscriptionListResponse>
list({
- String part = 'contentDetails,id,snippet,subscriberSnippet',
- List<
String> partList = const [], - String? channelId,
- String? id,
- bool? mine,
- bool? myRecentSubscribers,
- bool? mySubscribers,
- String? forChannelId,
- int? maxResults,
- String? onBehalfOfContentOwner,
- String? onBehalfOfContentOwnerChannel,
- String? order,
- String? pageToken,
Returns subscription resources that match the API request criteria.
Implementation
Future<SubscriptionListResponse> list(
{String part = 'contentDetails,id,snippet,subscriberSnippet',
List<String> partList = const [],
String? channelId,
String? id,
bool? mine,
bool? myRecentSubscribers,
bool? mySubscribers,
String? forChannelId,
int? maxResults,
String? onBehalfOfContentOwner,
String? onBehalfOfContentOwnerChannel,
String? order,
String? pageToken}) async {
return _rest.list(
// _authHeader,
accept,
buildParts(partList, part),
channelId: channelId,
id: id,
mine: mine,
myRecentSubscribers: myRecentSubscribers,
mySubscribers: mySubscribers,
forChannelId: forChannelId,
maxResults: maxResults,
onBehalfOfContentOwner: onBehalfOfContentOwner,
onBehalfOfContentOwnerChannel: onBehalfOfContentOwnerChannel,
pageToken: pageToken,
);
}