list method

Future<SubscriptionListResponse> list({
  1. String part = 'contentDetails,id,snippet,subscriberSnippet',
  2. List<String> partList = const [],
  3. String? channelId,
  4. String? id,
  5. bool? mine,
  6. bool? myRecentSubscribers,
  7. bool? mySubscribers,
  8. String? forChannelId,
  9. int? maxResults,
  10. String? onBehalfOfContentOwner,
  11. String? onBehalfOfContentOwnerChannel,
  12. String? order,
  13. 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,
  );
}