I am trying like below but in all Items it is showing count = 0. I have deliberately written htps since it does not allow me to Post.
StringBuilder htmlTable = new StringBuilder();
var client = new RestClient("googleapis.com/youtube/v3");
var request = new RestRequest("search", Method.GET);
request.AddParameter("part", "snippet");
request.AddParameter("type", "video");
request.AddParameter("channelId", "UCg3Zp-m_nNVw");
request.AddParameter("key", "AIzaSu9f5blG8");
List allItems = new List();
// Make initial request for youtube endpoint
IRestResponse response = client.Execute(request);
htmlTable.Append("");
htmlTable.Append("Video Id Video Title Description Views Like Comment Published ");
htmlTable.Append("");
foreach (var data in allItems.OrderBy(x => x.snippet.publishedAt))
Thanks1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jithu ThomasPosted Aug 22, 2024, 2:47 PM
Can you please update as following and try