【问题标题】:is there a way to get user created playlists using the youtube java library?有没有办法使用 youtube java 库获取用户创建的播放列表?
【发布时间】:2014-11-26 23:33:35
【问题描述】:

我有这样的代码;它工作正常。但我只想要用户创建的列表。这可能吗?

 */
                ChannelListResponse clr = youtube.channels()
                        .list("contentDetails").setMine(true).execute();

                // Get the user's uploads playlist's id from channel       list  
                // response
                String uploadsPlaylistId = clr.getItems().get(0)
                        .getContentDetails().getRelatedPlaylists()
                         // I want user created lists not uploads or                                
                         // favorites
                         .getUploads();

【问题讨论】:

标签: java youtube


【解决方案1】:

我刚刚看了youtube data api v3(之前没用过,只是看了api而已)。

看来,它提供了 PlaylistListResponse 然后你可以获取播放列表项和他们的 id。

【讨论】:

    猜你喜欢
    • 2017-07-27
    • 2013-03-31
    • 2016-11-19
    • 1970-01-01
    • 2013-04-30
    • 1970-01-01
    • 2018-01-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多