YoutubeListChannelsCommand constructor

YoutubeListChannelsCommand()

Implementation

YoutubeListChannelsCommand() {
  argParser
    ..addOption('part',
        mandatory: true,
        help:
            '''The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include.

If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.

The following list contains the part names that you can include in the parameter value:
auditDetails, brandingSettings, contentDetails, contentOwnerDetails, id, localizations, snippet, statistics, status, topicDetails''')
    ..addOption('for-username',
        help:
            'The forUsername parameter specifies a YouTube username, thereby requesting the channel associated with that username.',
        valueHelp: 'YouTube username')
    ..addOption('id',
        valueHelp: 'id',
        help:
            'The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the id property specifies the channel\'s YouTube channel ID.');
}