YoutubeListStreamCommand constructor

YoutubeListStreamCommand()

Implementation

YoutubeListStreamCommand() {
  argParser
    ..addOption('part',
        defaultsTo: 'id,snippet,cdn,status',
        help:
            'The part parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.')
    ..addOption('id',
        valueHelp: 'id',
        help:
            'The id parameter specifies a comma-separated list of YouTube stream IDs that identify the streams being retrieved. In a liveStream resource, the id property specifies the stream\'s ID.')
    ..addFlag('mine',
        help:
            'This parameter can only be used in a properly authorized request. The mine parameter can be used to instruct the API to only return streams owned by the authenticated user. Set the parameter value to true to only retrieve your own streams.')
    ..addOption('max-results',
        defaultsTo: '5',
        valueHelp: 'number',
        help:
            'The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.')
    ..addOption('page-token',
        valueHelp: 'token',
        help:
            'The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.');
}