/// <summary> /// Creates a new board with 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 CreateBoard(PinterestCreateBoardOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (String.IsNullOrWhiteSpace(options.Name)) { throw new PropertyNotSetException(nameof(options.Name)); } return(Client.DoHttpPostRequest("/v1/boards/", options)); }
/// <summary> /// Creates a new board with 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="PinterestCreateBoardResponse"/> representing the response.</returns> public PinterestCreateBoardResponse CreateBoard(PinterestCreateBoardOptions options) { return(PinterestCreateBoardResponse.ParseResponse(Raw.CreateBoard(options))); }