Get more then 25 comments from a Video
I'm having promblems getting more then the default 25 comments per request
in my application. I know I have to set the max-results parameter, but
whenever I try to set it, the application crashes with a
GDataRequestException with the information Execution of request failed.
But the url looks okay:
http://gdata.youtube.com/feeds/api/videos/kpzWVicfdQk?max-results=50
Used code:
string url =
String.Format("http://gdata.youtube.com/feeds/api/videos/{0}?max-results=50",
"kpzWVicfdQk");
YouTubeRequest request = new YouTubeRequest(new
YouTubeRequestSettings("GComments","***"));
Video v = request.Retrieve<Video>(new Uri(url));
Feed<Comment> comments = request.GetComments(v);
Without ?max-results=50 it works perfectly. I tried to set it on new
Uri(url) too, but it does not work there too. Thank you for helping!
No comments:
Post a Comment