Hi
I have below code & i want to display Videos by Views in Descending Order . Maximum Views first
var client = new RestClient("googleapis.com/youtube/v3");
var request = new RestRequest("search", Method.GET);
request.AddParameter("part", "snippet");
request.AddParameter("q", "short videos category");
request.AddParameter("type", "video");
request.AddParameter("maxResults", 25);
request.AddParameter("order", "viewCount");
request.AddParameter("key", "ApiKey");
Thanks
Naimish MakwanaPosted Feb 5, 2023, 8:22 AM
Hello Ramco,
You can get all the property in given code as below.
Thanks
Naimish
Naimish MakwanaPosted Feb 5, 2023, 8:57 AM
Hello Ramco,
You need to add null condition before join the tag.
If(item.snippet.tags != null && item.snippet.tags.Any())
{
//Your html code
}
Thanks
Naimish
Ramco RamcoPosted Feb 5, 2023, 8:39 AM
Hi
I am getting error on this line - Value cannot be null. Tags can be null in some videos,
htmlTable.Append("
Thanks
Ramco RamcoPosted Feb 5, 2023, 8:06 AM
Hi Naimish
It is not working properly. I want Channel Id,Name,Video Title , Video Description , Tags, ViewCount
Naimish MakwanaPosted Feb 5, 2023, 7:35 AM
Hello Ramco,
TO achive this do following things:
Thanks
Naimish Makwana
Ramco RamcoPosted Feb 5, 2023, 7:05 AM
Hi Naimish
I have below data . It is not showing correctly