列出所有播放列表:未选择过滤器

List all playlists: No filter selected

我收到以下错误:

I20151214-16:56:33.283(1)? { [Error: No filter selected.]
I20151214-16:56:33.283(1)?   code: 400,
I20151214-16:56:33.283(1)?   errors: 
I20151214-16:56:33.283(1)?    [ { domain: 'youtube.parameter',
I20151214-16:56:33.283(1)?        reason: 'missingRequiredParameter',
I20151214-16:56:33.283(1)?        message: 'No filter selected.',
I20151214-16:56:33.283(1)?        locationType: 'parameter',
I20151214-16:56:33.284(1)?        location: '' } ] }

当我这样做时:

    var data = {
        auth: this.oauth2Client,
        part: "snippet"
    };

    this.yt.playlists.list(data, function(err, res){
       console.log("===== playlists ======");
        console.log(err);
        console.log(res);
        console.log("==== playlists ======")
    });

"No filter selected mean" 有什么用,我该如何解决?

要修复此错误,我必须指定我想检索自己的播放列表。默认情况下,它不知道我是想要特定播放列表还是所有播放列表。

        var data = {
            auth: this.oauth2Client,
            part: "snippet",
            mine: true //this
        };

Playlists: list

Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs