Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 530.1k

Most Viewed Video

Dec 20 2022 3:58 AM

Hi

  I have below code but it is giving message VideoResource.ListRequest does not contain a definition for Order.

using (var yt = new YouTubeService(new BaseClientService.Initializer()
            {
                ApiKey = "Api Key",
            }))
            {
                StringBuilder htmlTable = new StringBuilder();

                var request = yt.Videos.List("snippet");
                request.Order = SearchResource.ListRequest.OrderEnum.ViewCount;

 


Answers (1)