appName = "testApp"; settings = new YouTubeRequestSettings(appName, devKey); request = new YouTubeRequest(settings); videoEntryUri = new Uri("http://gdata.youtube.com/feeds/api/videos?q=22O5QnSLdeE"); vid= request.Retrieve<Video>(videoEntryUri); comments = request.GetComments(vid); Response.Write(vid.ResponseUri); Response.Write("Total Number of comment on the video:"+vid.CommmentCount); Response.Write("<br>Total number of comment getting throug feed: " + comments.TotalResults); int counter = 1; //<gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/8aYQ_wjmxiQ/comments' countHint='0' Response.Write("<table width='450' border='1'>"); foreach ( Comment c in comments.Entries) { Response.Write("<tr><td>" + c.Author + "</td><td>" + c.Updated.Date + "</td></tr>"); Response.Write("<tr><td colspan='2'>"+c.Content+"</td></tr>"); counter++; } Response.Write("</table>"); Response.Write("Total Number of Comment Display: "+counter); } }
Settings.Maximum
start-index
i*25 + 1
i=0
countHint
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)