/// <summary> /// Edits the board matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> public SocialHttpResponse EditBoard(PinterestEditBoardOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (String.IsNullOrEmpty(options.Board)) { throw new PropertyNotSetException(nameof(options.Board)); } if (String.IsNullOrEmpty(options.Name)) { throw new PropertyNotSetException(nameof(options.Name)); } return(Client.DoHttpPatchRequest("/v1/boards/" + options.Board, options)); }
/// <summary> /// Edits the board matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>Returns an instance of <see cref="PinterestEditBoardResponse"/> representing the response.</returns> public PinterestEditBoardResponse EditBoard(PinterestEditBoardOptions options) { return(PinterestEditBoardResponse.ParseResponse(Raw.EditBoard(options))); }