/// <summary> /// Provides requests for the YouTube user's videos with a non-default video count or order to search for. /// </summary> /// <param name="youTubeUser">The YouTube user's username.</param> /// <param name="videoResultsCount">The number of videos returned in request.</param> /// <param name="userVideosOrder">The 'orderby' value by which videos are sorted.</param> public YouTubeProvider(string youTubeUser, int videoResultsCount = 10, VideoOrder userVideosOrder = VideoOrder.published) : this(youTubeUser) { VideoResultsCount = videoResultsCount; UserVideosOrder = userVideosOrder; }
// Video search overload for users. public IList<Video> GetChannelVideos(string userNameOrId, bool includeHowLongSincePublished = false, int resultsCount = 10, int startResultsIndex = 1, VideoOrder orderBy = VideoOrder.relevance, bool allowRestrictedLocation = false, bool explicitlyEmbeddableOnly = false) { return GetVideos(userNameOrId, false, includeHowLongSincePublished, resultsCount, startResultsIndex, Enum.GetName(typeof(VideoOrder), orderBy), allowRestrictedLocation, explicitlyEmbeddableOnly); }