/// <summary>
 /// Gets a list of user channels 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 GetChannels(VimeoGetUserChannelsOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (!options.HasUserId && !options.HasUsername)
     {
         throw new PropertyNotSetException(nameof(options.UserId));
     }
     return(Client.DoHttpGetRequest("https://api.vimeo.com/users/" + (options.HasUserId ? options.UserId + "" : options.Username) + "/channels", options));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets a list of user channels 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 GetChannels(VimeoGetUserChannelsOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (!options.HasUserId && !options.HasUsername)
     {
         throw new PropertyNotSetException(nameof(options.UserId));
     }
     return(Client.GetResponse(options));
 }
 /// <summary>
 /// Gets a list of user channels matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for request to the API.</param>
 /// <returns>An instance of <see cref="VimeoGetUserChannelsResponse"/> representing the response.</returns>
 public VimeoGetUserChannelsResponse GetChannels(VimeoGetUserChannelsOptions options)
 {
     return(VimeoGetUserChannelsResponse.ParseResponse(Raw.GetChannels(options)));
 }
 /// <summary>
 /// Gets a list of user channels matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for request to the API.</param>
 /// <returns>An instance of <see cref="VimeoChannelListResponse"/> representing the response.</returns>
 public VimeoChannelListResponse GetChannels(VimeoGetUserChannelsOptions options)
 {
     return(new VimeoChannelListResponse(Raw.GetChannels(options)));
 }