/// <summary> /// Gets a list of videos of the channel matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for request to the API.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.vimeo.com/api/endpoints/channels#/{channel_id}/videos</cref> /// </see> public IHttpResponse GetVideos(VimeoGetChannelVideosOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.GetResponse(options)); }
/// <summary> /// Gets a list of videos of the channel matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for request to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.vimeo.com/api/endpoints/channels#/{channel_id}/videos</cref> /// </see> public SocialHttpResponse GetVideos(VimeoGetChannelVideosOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (options.ChannelId == 0) { throw new PropertyNotSetException(nameof(options.ChannelId)); } return(Client.DoHttpGetRequest("https://api.vimeo.com/channels/" + options.ChannelId + "/videos", options)); }
/// <summary> /// Gets a list of videos of the channel matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for request to the API.</param> /// <returns>An instance of <see cref="VimeoGetChannelVideosResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.vimeo.com/api/endpoints/channels#/{channel_id}/videos</cref> /// </see> public VimeoGetChannelVideosResponse GetVideos(VimeoGetChannelVideosOptions options) { return(VimeoGetChannelVideosResponse.ParseResponse(Raw.GetVideos(options))); }
/// <summary> /// Gets a list of videos of the channel matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for request to the API.</param> /// <returns>An instance of <see cref="VimeoVideoListResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.vimeo.com/api/endpoints/channels#/{channel_id}/videos</cref> /// </see> public VimeoVideoListResponse GetVideos(VimeoGetChannelVideosOptions options) { return(new VimeoVideoListResponse(Raw.GetVideos(options))); }