public void Pulse_CreatePulse_Pass() { var pulseDto = new PulseDto { UserId = 5412166, Pulse = new PulseDto.PulseProperties { Name = "Unit Test Pulse" }, Update = new PulseDto.UpdateProperties { Text = "Unit Test Update" }, GroupId = "unit_test_group77" }; var result = _mondayClient.CreatePulse(137870199, pulseDto).Result; Assert.IsTrue(result != null); }
/// <summary> /// Create a new pulse in a board. /// </summary> /// <param name="boardId">The board’s unique identifier.</param> /// <param name="pulseDto">{UserId: Required, PulseName: Required, PhotoUrl: Optional [A URL to fetch the new pulse’s picture from.], Text: Optional [The update’s text (can contain simple HTML tags for formatting the text).], GroupId: Optional, AddToBottom: Optional }</param> /// <returns></returns> public async Task <BoardPulse> CreatePulse(int boardId, PulseDto pulseDto) { return(await _mondayClient.PostPulseByBoardIdAsync(boardId, pulseDto)); }