/// <summary> /// Gets a list of videos of the user 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> public IHttpResponse GetVideos(VimeoGetVideosOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.GetResponse(options)); }
/// <summary> /// Gets a list of videos of the user 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> public SocialHttpResponse GetVideos(VimeoGetVideosOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (!options.HasUserId && !options.HasUsername) { throw new PropertyNotSetException(nameof(options.UserId)); } return(Client.DoHttpGetRequest(options.ApiUrl, options)); }
/// <summary> /// Gets a list of videos of the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for request to the API.</param> /// <returns>An instance of <see cref="VimeoGetVideosResponse"/> representing the response.</returns> public VimeoGetVideosResponse GetVideos(VimeoGetVideosOptions options) { return(VimeoGetVideosResponse.ParseResponse(Raw.GetVideos(options))); }
/// <summary> /// Gets a list of videos of the user 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> public VimeoVideoListResponse GetVideos(VimeoGetVideosOptions options) { return new VimeoVideoListResponse(Raw.GetVideos(options)); }