【问题标题】:How to search for Creative Commons in the Youtube API [C#, .Net]如何在 Youtube API [C#, .Net] 中搜索知识共享
【发布时间】:2015-01-30 14:34:45
【问题描述】:

我正在使用 .Net 的 Youtube APi 3.0 和这个[代码示例][1]。一切正常,但我不知道如何搜索 fot CC。

        var searchListRequest = youtubeService.Search.List("snippet");
        searchListRequest.Q = "Google"; 
        searchListRequest.VideoLicense = SearchResource.ListRequest.VideoLicenseEnum.CreativeCommon;
        searchListRequest.MaxResults = 50;

https://developers.google.com/youtube/v3/code_samples/dotnet#search_by_keyword

【问题讨论】:

    标签: api youtube


    【解决方案1】:

    答案很简单……

    var searchListRequest = youtubeService.Search.List("snippet");
            searchListRequest.Type = "video";
            searchListRequest.Q = searchword; // Replace with your search term.
            searchListRequest.VideoLicense = SearchResource.ListRequest.VideoLicenseEnum.CreativeCommon;
            searchListRequest.MaxResults = 50;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-25
      • 2011-09-14
      • 2013-10-25
      • 1970-01-01
      • 2020-02-22
      • 1970-01-01
      • 1970-01-01
      • 2010-09-21
      相关资源
      最近更新 更多