YoutubeListPlaylistsCommand constructor
YoutubeListPlaylistsCommand()
Implementation
YoutubeListPlaylistsCommand() {
argParser
..addOption('part',
mandatory: true,
help:
'''The part parameter specifies a comma-separated list of one or more playlist 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 playlist resource, the snippet property contains properties like author, title, description, and timeCreated. As such, if you set part=snippet, the API response will contain all of those properties.
The following list contains the part names that you can include in the parameter value:
contentDetails, id, localizations, player, snippet, status''')
..addOption('channel-id',
help:
'This value indicates that the API should only return the specified channel\'s playlists.',
valueHelp: 'YouTube username')
..addOption('id',
valueHelp: 'id',
help:
'The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the resource(s) that are being retrieved. In a playlist resource, the id property specifies the playlist\'s YouTube playlist ID.')
..addOption('mine',
help:
'This parameter can only be used in a properly authorized request. Set this parameter\'s value to true to instruct the API to only return playlists owned by the authenticated user.')
..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.');
}